+2010-12-19  Bruno Haible  <bruno@clisp.org>
+
+       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 <ianb@erislabs.net>.
+
 2010-12-19  Bruno Haible  <bruno@clisp.org>
 
        unistr/u8-mbsnlen: Add missing dependency.
 
 
 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"
 
 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: