minix/external/bsd/flex/dist/doc/Makefile.am
2012-06-18 10:54:47 +00:00

16 lines
351 B
Makefile

help2man = @HELP2MAN@
info_TEXINFOS = flex.texi
dist_man_MANS = flex.1
EXTRA_DIST = 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