[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] respect DESTDIR
- From: Elias Pipping <pipping@xxxxxxxxxxx>
- Date: Sun, 01 Jan 2012 20:41:18 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 11713
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