summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6195eca..961a896 100644
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,7 @@ DEPFLAGS ?= -MD -MP -MF $(@:.o=.d)
DESTDIR ?=
PREFIX ?= /usr
+MANDIR ?= $(PREFIX)/share/man
LOCAL_CPPFLAGS := \
-D__EXTENSIONS__ \
@@ -120,12 +121,12 @@ clean:
install:
$(MKDIR) $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m755 bfs $(DESTDIR)$(PREFIX)/bin/bfs
- $(MKDIR) $(DESTDIR)$(PREFIX)/share/man/man1
- $(INSTALL) -m644 bfs.1 $(DESTDIR)$(PREFIX)/share/man/man1/bfs.1
+ $(MKDIR) $(DESTDIR)$(MANDIR)/man1
+ $(INSTALL) -m644 bfs.1 $(DESTDIR)$(MANDIR)/man1/bfs.1
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/bin/bfs
- $(RM) $(DESTDIR)$(PREFIX)/share/man/man1/bfs.1
+ $(RM) $(DESTDIR)$(MANDIR)/man1/bfs.1
.PHONY: all release check distcheck clean install uninstall