summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 0058e253849cbb24c1fc1d4fc8f4de82b0c90e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
help2man = @HELP2MAN@

info_TEXINFOS =	flex.texi
dist_man_MANS = flex.1
dist_doc_DATA= flex.pdf

CLEANFILES = \
	flex.hks \
	flex.ops

$(dist_man_MANS): $(top_srcdir)/main.c
	for i in $(dist_man_MANS) ; do \
	$(help2man) --name='$(PACKAGE_NAME)' \
	--section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \
	 ../flex$(EXEEXT) > $$i || rm -f $$i ; \
	done