summaryrefslogtreecommitdiff
path: root/man/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-08-21 17:54:04 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-08-21 17:54:04 +0200
commit99ca8abacf61a7195e227704984ff96a0a868bc3 (patch)
treec0d67b86728cc20f9c1db10c79a50d8d902c7b30 /man/Makefile
parent3bf78101a7e43057df563fe7a234b991e8de80d0 (diff)
Add version information to manpages
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