From: Bruno Haible Date: Sun, 19 Dec 2010 10:59:10 +0000 (+0100) Subject: relocatable-prog-wrapper: Separate from relocatable-prog. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc0adb39265accc2753be3e1aa55087d19f71286;p=pspp relocatable-prog-wrapper: Separate from relocatable-prog. * modules/relocatable-prog (Makefile.am): Define uninstall-hook and uninstall-relocwrapper rule here. * modules/relocatable-prog-wrapper (Makefile.am): ... not here. Reported by Ian Beckwith . --- diff --git a/ChangeLog b/ChangeLog index 171f8b651f..516e7d9b4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-12-19 Bruno Haible + + relocatable-prog-wrapper: Separate from relocatable-prog. + * modules/relocatable-prog (Makefile.am): Define uninstall-hook and + uninstall-relocwrapper rule here. + * modules/relocatable-prog-wrapper (Makefile.am): ... not here. + Reported by Ian Beckwith . + 2010-12-19 Bruno Haible unistr/u8-mbsnlen: Add missing dependency. diff --git a/modules/relocatable-prog b/modules/relocatable-prog index 48a66b8bcc..129947f2b8 100644 --- a/modules/relocatable-prog +++ b/modules/relocatable-prog @@ -29,6 +29,20 @@ gl_RELOCATABLE([$gl_source_base]) Makefile.am: DEFS += -DEXEEXT=\"@EXEEXT@\" +if RELOCATABLE_VIA_WRAPPER +uninstall-hook: uninstall-relocwrapper +uninstall-relocwrapper: + if test $(RELOCATABLE) = yes; then \ + case '$(EXEEXT)' in \ + .bin*) ;; \ + *) cd $(top_builddir) && \ + $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \ + AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \ + uninstall ;; \ + esac; \ + fi +.PHONY: uninstall-relocwrapper +endif Include: "relocatable.h" diff --git a/modules/relocatable-prog-wrapper b/modules/relocatable-prog-wrapper index e938a69a57..b96892952e 100644 --- a/modules/relocatable-prog-wrapper +++ b/modules/relocatable-prog-wrapper @@ -53,20 +53,6 @@ gl_FUNC_SETENV_SEPARATE gl_FUNC_STRERROR_SEPARATE Makefile.am: -if RELOCATABLE_VIA_WRAPPER -uninstall-hook: uninstall-relocwrapper -uninstall-relocwrapper: - if test $(RELOCATABLE) = yes; then \ - case '$(EXEEXT)' in \ - .bin*) ;; \ - *) cd $(top_builddir) && \ - $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \ - AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \ - uninstall ;; \ - esac; \ - fi -.PHONY: uninstall-relocwrapper -endif Include: