summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-26 11:51:03 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-01-26 11:51:03 +0100
commita104965ab045fb397c8850f4434235bfc2bb9623 (patch)
tree21e0c2435863200d322ceb9c835b8c60fed3c26c /Makefile
parent86a6f901c041fb78fd702bd215ba0a8cf1fd7b27 (diff)
build: Fix install targets for use with DESTDIR
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3e4205d..a80aa7b 100644
--- a/Makefile
+++ b/Makefile
@@ -59,12 +59,12 @@ $(Q_P): $(Q_OBJS)
install_$(D_P): $(D_P)
@echo " INSTALL $(D_P)"
@$(INSTALL) -d -m 755 $(DESTDIR)$(SBINDIR)
- @$(INSTALL) -m 755 $(D_P) $(SBINDIR)/$(D_P)
+ @$(INSTALL) -m 755 $(D_P) $(DESTDIR)$(SBINDIR)/$(D_P)
install_$(Q_P): $(Q_P)
@echo " INSTALL $(Q_P)"
@$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
- @$(INSTALL) -m 755 $(Q_P) $(BINDIR)/$(Q_P)
+ @$(INSTALL) -m 755 $(Q_P) $(DESTDIR)$(BINDIR)/$(Q_P)
install: install_$(D_P) install_$(Q_P)