diff options
authorDmitry Bogatov <>2018-12-05 15:47:18 +0000
committerDmitry Bogatov <>2018-12-05 15:47:18 +0000
commit41a1658754a15946aab4ad44bfb77353ce2df812 (patch)
parent597d860c12c6d35c106d76b84975497cf713201b (diff)
Make upstream build system respect $(DESTDIR)
Upstream build system does not make difference between installation prefix (named HOME by upstream), embedded in compiled software, and installation root $(DESTDIR), making staged install, employed by most package managers impossible. This patch adjust upstream Makefile to respect $(DESTDIR) variable. To configure prefix, use `conf-home' file. Forwarded: no Last-Update: 2018-12-05 Gbp-Pq: Name 0004-respect-DESTDIR-variable.patch
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bcf5bd5..e6528b4 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ compile auto-str.c buffer.h readwrite.h exit.h
auto_home.c: \
auto-str conf-home
- ./auto-str auto_home `head -1 conf-home` > auto_home.c
+ ./auto-str auto_home $(DESTDIR)/`head -1 conf-home` > auto_home.c
auto_home.o: \
compile auto_home.c