[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

[PATCH] respect DESTDIR



Hi,

I'm attaching a patch that makes the build system respect the variable
DESTDIR.


Best regards,

Elias Pipping
Source: Elias Pipping <pipping@xxxxxxxxxxx>
Upstream: no
Reason: DESTDIR is not respected
--- Makefile.in
+++ Makefile.in
@@ -55,28 +55,28 @@
 install-ja: install-lisp install-info-ja
 
 install-lisp: lisp
-	@$(SHELL) $(srcdir)/mkinstalldirs $(lispdir);\
+	@$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)/$(lispdir);\
 	for p in ChangeLog* *.el; do\
 	  case "$$p" in\
 	    $(IGNORES)) ;;\
-	    *) echo " $(INSTALL_DATA) $$p $(lispdir)/$$p";\
-	       $(INSTALL_DATA) $$p $(lispdir)/$$p;;\
+	    *) echo " $(INSTALL_DATA) $$p $(DESTDIR)/$(lispdir)/$$p";\
+	       $(INSTALL_DATA) $$p $(DESTDIR)/$(lispdir)/$$p;;\
 	  esac;\
 	done;\
 	for p in *.elc; do\
 	  if test -f "$$p"; then\
-	    echo " $(INSTALL_DATA) $$p $(lispdir)/$$p";\
-	    $(INSTALL_DATA) $$p $(lispdir)/$$p;\
+	    echo " $(INSTALL_DATA) $$p $(DESTDIR)/$(lispdir)/$$p";\
+	    $(INSTALL_DATA) $$p $(DESTDIR)/$(lispdir)/$$p;\
 	  fi;\
 	done;\
 	if test -f shimbun/shimbun.elc; then\
 	  for p in `cd shimbun && echo *.el`; do\
-	    echo " $(INSTALL_DATA) shimbun/$$p $(lispdir)/$$p";\
-	    $(INSTALL_DATA) shimbun/$$p $(lispdir)/$$p;\
+	    echo " $(INSTALL_DATA) shimbun/$$p $(DESTDIR)/$(lispdir)/$$p";\
+	    $(INSTALL_DATA) shimbun/$$p $(DESTDIR)/$(lispdir)/$$p;\
 	  done;\
 	  for p in `cd shimbun && echo *.elc`; do\
-	    echo " $(INSTALL_DATA) shimbun/$$p $(lispdir)/$$p";\
-	    $(INSTALL_DATA) shimbun/$$p $(lispdir)/$$p;\
+	    echo " $(INSTALL_DATA) shimbun/$$p $(DESTDIR)/$(lispdir)/$$p";\
+	    $(INSTALL_DATA) shimbun/$$p $(DESTDIR)/$(lispdir)/$$p;\
 	  done;\
 	fi