summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: