1FLEX = $(top_builddir)/src/flex$(EXEEXT)
2
3info_TEXINFOS =	flex.texi
4dist_man_MANS = flex.1
5MAINTAINERCLEANFILES = flex.1
6
7CLEANFILES = *.aux *.cp *.cps *.fn *.fns *.hk *.hks *.ky *.log \
8	*.op *.ops *.pg *.toc *.tp *.tps *.vr *.vrs
9
10flex.1: $(top_srcdir)/configure.ac $(top_srcdir)/src/flex.skl $(top_srcdir)/src/options.c $(top_srcdir)/src/options.h | $(FLEX)
11	$(HELP2MAN) --name='$(PACKAGE_NAME)' --section=1 \
12	--source='The Flex Project' --manual='Programming' \
13	--output=$@ $(FLEX) \
14	|| rm -f $@
15