aboutsummaryrefslogtreecommitdiffstats
path: root/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile')
-rw-r--r--man/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/man/Makefile b/man/Makefile
index e6a4d4e..bab0aef 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -3,11 +3,18 @@
-include ../Makefile.conf
include ../Makefile.rules
-install:
+GENFILES = $(patsubst %.in, %, $(wildcard *.[58].in))
+
+.SUFFIXES: .in
+
+.in:
+ sed -e 's/@@INIT.D@@/$(initdir)/g' < $< > $@
+
+all: $(GENFILES)
+
+install: all
install -c *.5 -m 644 $(INSTALLROOT)$(mandir)/man5
install -c *.8 -m 644 $(INSTALLROOT)$(mandir)/man8
-all:
-
clean:
-
+ rm -f $(GENFILES)