summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am9
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index e6e97c8..a9b0582 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,9 +22,6 @@ CLEANFILES = \
flex.vr \
flex.vrs
-$(dist_man_MANS): $(top_srcdir)/configure.ac $(top_srcdir)/src/flex.skl $(top_srcdir)/src/options.c $(top_srcdir)/src/options.h
- for i in $(dist_man_MANS) ; do \
- $(help2man) --name='$(PACKAGE_NAME)' \
- --section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \
- $(top_srcdir)/src/flex$(EXEEXT) > $$i || rm -f $$i ; \
- done
+flex.1 : ../src/flex$(EXEEXT)
+ $(help2man) --name='$(PACKAGE_NAME)' --section=1 --output=$@ $< || \
+ rm -f $@