@maintainer_clean_files. This was lost on 2001-06-23.
* tests/yacc7.test, tests/yacc4.test: Complete to check
that maintainer-clean erases YACC's output files,
respectively with and without `-d'.
Reported by Flavien Astraud.
+2002-06-21 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (lang_yacc_target_hook): Add $output to
+ @maintainer_clean_files. This was lost on 2001-06-23.
+ * tests/yacc7.test, tests/yacc4.test: Complete to check
+ that maintainer-clean erases YACC's output files,
+ respectively with and without `-d'.
+ Reported by Flavien Astraud.
+
2002-06-19 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/am/lang-compile.am (%FPFX%DEPMODE): Delete. This is now
Eric Siegerman erics_97@pobox.com
Erick Branderhorst branderh@iaehv.nl
Erik Lindahl E.Lindahl@chem.rug.nl
+Flavien Astraud flav42@yahoo.fr
François Pinard pinard@iro.umontreal.ca
Fred Fish fnf@ninemoons.com
Ganesan Rajagopal rganesan@novell.com
# do.
push (@maintainer_clean_files, $header);
}
+ # Erase $OUTPUT on `make maintainer-clean' (by GNU standards).
+ # See the comment above for $HEADER.
+ push (@maintainer_clean_files, $output);
}
# This is a helper for both lex and yacc.
grep '^#.*/sub/\.\./' bar.c && exit 1
grep '^#.*/sub/\.\./' parse.c && exit 1
+# Make distclean must not erase bar.c nor parse.c (by GNU standards) ...
+$MAKE distclean
+test -f bar.c
+test -f parse.c
+# ... but maintainer-clean should.
+../configure
+$MAKE maintainer-clean
+test ! -f bar.c
+test ! -f parse.c
+:
+
exit 0
%%
END
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
-$AUTOCONF || exit 1
-./configure || exit 1
+set -e
-$MAKE foo.h || exit 1
+$ACLOCAL
+$AUTOMAKE -a
+$AUTOCONF
+./configure
-test -f foo.h || exit 1
+$MAKE foo.h
+
+test -f foo.h
rm -f foo.h foo.c
-$MAKE check-dist || exit 1
+$MAKE check-dist
# We should be able to recover if foo.h is deleted.
-rm -f foo.h || exit 1
-$MAKE foo.h || exit 1
-test -f foo.h || exit 1
+rm -f foo.h
+$MAKE foo.h
+test -f foo.h
-exit 0
+# Make distclean must not erase foo.c nor foo.h (by GNU standards) ...
+$MAKE foo.c
+test -f foo.h
+test -f foo.c
+$MAKE distclean
+test -f foo.h
+test -f foo.c
+# ... but maintainer-clean should.
+./configure
+$MAKE maintainer-clean
+test ! -f foo.h
+test ! -f foo.c
+: