ref: b008e4200e7066288922732e81971ca6b799fae4
parent: f794ffc71705a02262ee4481c28d60b5af27d639
author: Ori Bernstein <[email protected]>
date: Thu Jun 12 12:11:13 EDT 2014
Finish off DESTDIR support.
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -7,14 +7,14 @@
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: