Hi Ben, * Ben Pfaff wrote on Thu, Jun 10, 2010 at 07:06:53AM CEST: > +uninstall-hook: uninstall-relocwrapper > +uninstall-relocwrapper:
Nice. > +if RELOCATABLE_VIA_LD > + @: > +else > + if test $(RELOCATABLE) = yes; then \ > + case '$(EXEEXT)' in \ > + .bin*) ;; \ > + *) $(MAKE) uninstall EXEEXT=.bin$(EXEEXT) ;; \ With recursive make commands in your makefile, the overriding of EXEEXT on the command line here will work reliably with GNU make only. Problem is, `env EXEEXT=.bin$(EXEEXT) $(MAKE) -e uninstall' is dangerous, too, for other bits in the environment can be a problem. Might as well live with it and document the limitation, I guess. > + esac; \ > + fi > +endif Cheers, Ralf