[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uninstalling relocation wrappers
From: |
Ralf Wildenhues |
Subject: |
Re: uninstalling relocation wrappers |
Date: |
Thu, 10 Jun 2010 20:01:08 +0200 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
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