about summary refs log tree commit diff
path: root/Src/Makemod.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Makemod.in.in')
-rw-r--r--Src/Makemod.in.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/Src/Makemod.in.in b/Src/Makemod.in.in
index 6d6e6af05..050a0682e 100644
--- a/Src/Makemod.in.in
+++ b/Src/Makemod.in.in
@@ -128,7 +128,20 @@ install.modules: install.modules-here
 uninstall.modules: uninstall.modules-here
 
 install.bin-here uninstall.bin-here:
-install.modules-here uninstall.modules-here:
+
+install.modules-here:
+	modules='$(MODULES)'; \
+	if test -n "$$modules"; then $(sdir_top)/mkinstalldirs $(DESTDIR)$(MODDIR); fi; \
+	for mod in $$modules; do \
+	    $(INSTALL_PROGRAM) $$mod $(DESTDIR)$(MODDIR)/$$mod; \
+	done
+
+uninstall.modules-here:
+	modules='$(MODULES)'; for mod in $$modules; do \
+	    if test -f $(DESTDIR)$(MODDIR)/$$mod; then \
+		rm -f $(DESTDIR)$(MODDIR)/$$mod; \
+	    else :; fi; \
+	done
 
 # ========== DEPENDENCIES FOR CLEANUP ==========