summaryrefslogtreecommitdiff
path: root/man/Makefile
blob: b7d8269f81501e7e11aa44e945d347f840072217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include ../config.mk

SOURCES = ${shell echo *.pre}
TARGETS = ${SOURCES:.pre=.1}

all: ${TARGETS}

.pre.1:
	sed 's/\$$VERSION\$$/${VERSION}/g' < ${@:.1=.pre} > $@
	sed 's/\$$DATE\$$/'"$$(date '+%B %d, %Y')"/g < ${@:.1=.pre} > $@

clean:
	rm *.1

.SUFFIXES: .pre .1

.PHONY: clean