]> granicus.if.org Git - flex/commitdiff
make better use of AC_INIT; clean up, simplify and make more robust the generation...
authorWill Estes <wlestes@users.sourceforge.net>
Tue, 13 Feb 2007 17:54:04 +0000 (17:54 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Tue, 13 Feb 2007 17:54:04 +0000 (17:54 +0000)
configure.in
doc/Makefile.am

index 7ebfd1e35cc890c95c624e6a1183437efd3d5ed9..6d1f64b3cb15b9267841941512060c4de00452a8 100644 (file)
@@ -24,7 +24,8 @@ dnl PURPOSE.
 dnl autoconf requirements and initialization
 
 AC_PREREQ(2.54)
-AC_INIT(flex,2.5.33,flex-help@lists.sourceforge.net)
+AC_INIT([the fast lexical analyser generator], [2.5.33],
+[flex-help@lists.sourceforge.net], [flex])
 AC_CONFIG_SRCDIR(scan.l)
 AM_INIT_AUTOMAKE(gnits dist-bzip2)
 AC_CONFIG_HEADER(config.h:conf.in)
index c0d642eec69c6fb777550c247077de55c4774e14..bfed30d326020bf49dcf61d9993bfaeca651cbcc 100644 (file)
@@ -10,5 +10,7 @@ CLEANFILES = \
 
 $(dist_man_MANS): $(top_srcdir)/main.c
        for i in $(dist_man_MANS) ; do \
-       $(help2man) --name='fast lexical analyzer generator' --section=`echo $$i|rev|cut -f 1 -d .|rev` ../flex > $$i ; \
+       $(help2man) --name='$(PACKAGE_NAME)' \
+       --section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \
+        ../flex$(EXEEXT) > $$i || rm -f $$i ; \
        done