From 5abdb4472e098ce14afe16cebcef63b917633e58 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sat, 25 Oct 2003 11:20:41 +0000 Subject: install the mandir --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3