aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: b114df0b85cc80c43e1c1cefa463d1911e9be254 (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
25
26
SUBDIRS = api

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@%'`grep CHECKIN $< | $(AWK) '{print $$4}'`'%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