summaryrefslogtreecommitdiff
path: root/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'man/Makefile')
-rw-r--r--man/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/man/Makefile b/man/Makefile
new file mode 100644
index 0000000..8fe2cbd
--- /dev/null
+++ b/man/Makefile
@@ -0,0 +1,25 @@
+include ../config.mk
+
+SOURCES = ${shell echo *.pre}
+TARGETS = ${SOURCES:.pre=.1}
+
+all: ${TARGETS}
+
+.pre.1:
+ sed \
+ -e 's/\$$VERSION\$$/${VERSION}/g' \
+ -e 's/\$$DATE\$$/${MAN_DATE}/g' \
+ -e 's/\$$MAN_CURL\$$/${MAN_CURL}/' \
+ -e 's/\$$MAN_DEBUG\$$/${MAN_DEBUG}/' \
+ -e 's/\$$MAN_EXIF\$$/${MAN_EXIF}/' \
+ -e 's/\$$MAN_INOTIFY\$$/${MAN_INOTIFY}/' \
+ -e 's/\$$MAN_MAGIC\$$/${MAN_MAGIC}/' \
+ -e 's/\$$MAN_XINERAMA\$$/${MAN_XINERAMA}/' \
+ < ${@:.1=.pre} > $@
+
+clean:
+ rm -f *.1
+
+.SUFFIXES: .pre .1
+
+.PHONY: clean