summaryrefslogtreecommitdiff
path: root/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile')
-rw-r--r--man/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/man/Makefile b/man/Makefile
new file mode 100644
index 0000000..35a21b7
--- /dev/null
+++ b/man/Makefile
@@ -0,0 +1,16 @@
+include ../config.mk
+
+SOURCES = ${shell echo *.pre}
+TARGETS = ${SOURCES:.pre=.1}
+
+all: ${TARGETS}
+
+.pre.1:
+ sed 's/\$$VERSION\$$/${VERSION}/g' < ${@:.1=.pre} > $@
+
+clean:
+ rm *.1
+
+.SUFFIXES: .pre .1
+
+.PHONY: clean