summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-10-25 11:20:41 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-10-25 11:20:41 +0000
commit5abdb4472e098ce14afe16cebcef63b917633e58 (patch)
tree120f02a172193b3efd98911de8c55580ca9d360d /Makefile
parentf6b08f00679dd3afe72479e0079030606d6f7598 (diff)
install the mandir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 67f39b7..9d6562a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ KERNEL_DIR=include/linux
endif
ARPTABLES_VERSION:=0.0.3
OLD_ARPTABLES_VERSION:=0.0.2
+MANDIR?=/usr/local/man
PREFIX:=/usr/local
LIBDIR:=$(PREFIX)/lib
@@ -47,12 +48,16 @@ $(DESTDIR)$(BINDIR)/arptables: arptables
@[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
cp $< $@
+$(MANDIR)/man8/arptables.8: arptables.8
+ mkdir -p $(@D)
+ install -m 0644 -o root -g root $< $@
+
.PHONY: exec
exec: arptables
install -m 0755 -o root -g root $< $(BINFILE)
.PHONY: install
-install: exec
+install: $(MANDIR)/man8/arptables.8 exec
.PHONY: clean
clean: