blob: 9209de1e6d210a3d3f7fca4b96e08ffdda916848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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_VERSCMP\$$/${MAN_VERSCMP}/' \
-e 's/\$$MAN_XINERAMA\$$/${MAN_XINERAMA}/' \
< ${@:.1=.pre} > $@
clean:
rm -f *.1
.SUFFIXES: .pre .1
.PHONY: clean
|