aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: 28fa5a344865c36180df30cf67346bc73731b1fe (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
EXTRA_DIST = ncpd.man.in plpfuse.man.in plpftp.man.in sisinstall.man.in \
	plpprintd.man.in

man_MANS = ncpd.8 plpftp.1 sisinstall.1 plpprintd.8
if BUILD_PLPFUSE
man_MANS += plpfuse.8
endif

edit = sed \
	-e 's|@MANDATE@|'`git log --pretty=format:"%ad" --date=short -1 $<.in`'|g' \
	-e 's|@pkgdatadir[@]|$(pkgdatadir)|g'

%.1: %.man Makefile
	rm -f $@ $@.tmp
	$(edit) $< >$@.tmp
	mv $@.tmp $@

%.8: %.man Makefile
	rm -f $@ $@.tmp
	$(edit) $< >$@.tmp
	mv $@.tmp $@

distclean-local:
	rm -f *.1 *.8