summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-12 16:11:13 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-12 16:11:13 -0400
commitb008e4200e7066288922732e81971ca6b799fae4 (patch)
treeca585c6d97280f646dfd3ee7f7f28466bb0a256c /doc
parentf794ffc71705a02262ee4481c28d60b5af27d639 (diff)
downloadmc-b008e4200e7066288922732e81971ca6b799fae4.tar.gz
Finish off DESTDIR support.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/Makefile b/doc/Makefile
index a665a06..9ee91a7 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -7,14 +7,14 @@ include ../config.mk
all:
install:
- @echo install -m 644 $(MAN) $(INST_ROOT)/share/man/man1; \
- mkdir -p $(INST_ROOT)/share/man/man1; \
- install -m 644 $(MAN) $(INST_ROOT)/share/man/man1; \
+ @echo install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man1); \
+ mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man1); \
+ install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man1); \
uninstall: $(MAN)
@for i in $^; do \
- echo rm -f $(INST_ROOT)/share/man/man1/$$i; \
- rm -f $(INST_ROOT)/share/man/man1/$$i; \
+ echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man1/$$i); \
+ rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man1/$$i); \
done
clean: