The equivalent would be:
...I'll keep fooling (playing along with) the doctor, even if I have to shine his boots with brandy.
"Ile" was a sort of grease, a treatment for shoes and boot leather.
The idea of treating his boots with brandy, which was (and is) very expensive, gave the impression that he would do anything necessary to keep the doctor thinking he was friendly.