]> granicus.if.org Git - flex/commitdiff
Changed man page dependencies.
authorWill Estes <westes575@gmail.com>
Wed, 11 Nov 2015 20:20:56 +0000 (15:20 -0500)
committerWill Estes <westes575@gmail.com>
Wed, 11 Nov 2015 20:20:56 +0000 (15:20 -0500)
The man page is just the --help output as reformatted by help2man. The
--help option is most likely to change when the flex skeleton changes
or one of the option parsing files changes or the configure.ac script
itself changes. The dependencies reflect this now.

It is still necessary, under some circumstances, to rebuild flex
explicitly before building the man page. In theory, it's possible to
have automake arrange to do this all the time, but doing so works out
to be fragile, given the rest of the build system.

doc/Makefile.am

index 961e41bb00be3826023ef86cc42f6241fb74ca40..e776c1831bc9a9953ed455bb17629f1ca4e7d615 100644 (file)
@@ -23,7 +23,7 @@ CLEANFILES = \
        flex.vr \
        flex.vrs
 
-$(dist_man_MANS): $(top_srcdir)/src/main.c
+$(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/'` \