]> sourceware.org Git - automake.git/commitdiff
start of --help/--version testing
authorTom Tromey <tromey@redhat.com>
Mon, 23 Sep 1996 06:57:05 +0000 (06:57 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 23 Sep 1996 06:57:05 +0000 (06:57 +0000)
ChangeLog
Makefile.in
TODO
automake.in
lib/am/scripts.am
m4/Makefile.in
scripts.am
tests/Makefile.in

index 41a90f542eb6742d49fec1f86017966287994303..0a1508e4c6e8dccc29fff139fb1c0db384b695a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Mon Sep 23 00:04:48 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
+       * automake.in (handle_scripts): Push new target onto @check.
+       * scripts.am (check-@DIR@SCRIPTS): New target.
+
        * automake.in (initialize_global_constants): Define %dist,
        dist_header, dist_trailer.
        (handle_dist): Make dist-all target.
index a4a1474332a9fe6bc3284ee1a4bd43053636bec4..39f2f36d221220e9585e2c93230d4ed00df6087e 100644 (file)
@@ -89,10 +89,10 @@ texinfo.tex version.texi ylwrap
 PACKAGE = @PACKAGE@
 VERSION = @VERSION@
 
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST) $(DATA)
-DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST) $(DATA)
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST)
+DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST)
 
 TAR = tar
 default: all
@@ -133,6 +133,20 @@ uninstall-binSCRIPTS:
          rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
        done
 
+check-binSCRIPTS:
+       pid=$$$$; list="$(bin_SCRIPTS)"; for p in $$list; do \
+         for opt in --help --version; do \
+           if test -f $$p; then :; \
+           else if test -f $(srcdir)/$$p; then \
+             p=$(srcdir)/$$p; \
+           else exit 1; fi; fi; \
+           if $$p $$opt > .chkout$$pid 2> .chkerr$$pid \
+                && test -n "`cat .chkout$$pid`" \
+                && test -z "`cat .chkerr$$pid`"; then :; \
+           else echo "$$p failed $$opt test" 1>&2; exit 1; fi; \
+         done; \
+       done; rm -f .chk???$$pid
+
 install-pkgdataSCRIPTS: $(pkgdata_SCRIPTS)
        $(NORMAL_INSTALL)
        $(mkinstalldirs) $(pkgdatadir)
@@ -150,6 +164,20 @@ uninstall-pkgdataSCRIPTS:
          rm -f $(pkgdatadir)/`echo $$p|sed '$(transform)'`; \
        done
 
+check-pkgdataSCRIPTS:
+       pid=$$$$; list="$(pkgdata_SCRIPTS)"; for p in $$list; do \
+         for opt in --help --version; do \
+           if test -f $$p; then :; \
+           else if test -f $(srcdir)/$$p; then \
+             p=$(srcdir)/$$p; \
+           else exit 1; fi; fi; \
+           if $$p $$opt > .chkout$$pid 2> .chkerr$$pid \
+                && test -n "`cat .chkout$$pid`" \
+                && test -z "`cat .chkerr$$pid`"; then :; \
+           else echo "$$p failed $$opt test" 1>&2; exit 1; fi; \
+         done; \
+       done; rm -f .chk???$$pid
+
 version.texi: stamp-vti
 
 stamp-vti: automake.texi $(top_srcdir)/configure.in
@@ -265,9 +293,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(CONFIG_HEADER) \
        tags=; \
        here=`pwd`; \
        for subdir in $(SUBDIRS); do \
-         test -f $$subdir/TAGS && { \
-           tags="$$tags -i $$here/$$subdir/TAGS"; \
-         } \
+         test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
        done; \
        test -z "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
          || etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)
@@ -339,7 +365,7 @@ info: $(INFO_DEPS) info-recursive
 
 dvi: $(DVIS) dvi-recursive
 
-check: check-recursive
+check: check-binSCRIPTS check-pkgdataSCRIPTS check-recursive
 
 installcheck: installcheck-recursive installcheck-local
 
@@ -378,7 +404,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log stamp-h
        test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
diff --git a/TODO b/TODO
index 9f716ec60c82ecb62fca6853f9a0a9eb42ce541d..8d8455d5718b10a1e9af228106abfc98c1e8ecd0 100644 (file)
--- a/TODO
+++ b/TODO
@@ -17,7 +17,7 @@ info files, which is currently somewhat broken).
 
 Per Bothner says:
 Per> 1) Being able to build a set of non-source programs
-Per> from source porgrams, without necessarily linking them together.
+Per> from source programs, without necessarily linking them together.
 Per> I.e. one should be able to say something like:
 Per>   dummy_SOURCES=foo.c bar.c
 Per> and automake should realize that it needs to build foo.o and bar.o.
@@ -47,12 +47,6 @@ Per> .class files from a list of .java source files.
 
 !! should write autoconf-style doc entries for each m4 macro
 
-  [ this should really go into autoconf in some automatic way ]
-Joel> I know that the following is needed at the end of configure.in:
-Joel>         [test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h])
-Joel> However, if automake checked that this line is present, it would
-Joel> help...this bit me for a while.
-
 Jim's idea: should look for @setfilename and warn if filenames too long
 * guess split size
 * allow ".info" to be missing
@@ -225,6 +219,10 @@ Multi-language support:
 * should automatically handle the linking issue (special-case C++)
 * must get compile rules for various languages; FORTRAN probably
   most important unimplemented language
+This should be integrated in some way with Per's idea.
+Eg .f.o rules should be recognized & auto-handled in _SOURCES
+That way any random language can be treated with C/C++ on a first-class
+basis (maybe)
 
 Should 'distclean' "rm -rf .deps"?
 
@@ -354,6 +352,19 @@ use of (eg) EXTRA_PROGRAMS is not very clear right now
 
 ================================================================
 
+Things to do for autoconf:
+
+* allow random code to be inserted a la the 2nd arg to AC_OUTPUT:
+Joel> I know that the following is needed at the end of configure.in:
+Joel>         [test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h])
+Joel> However, if automake checked that this line is present, it would
+Joel> help...this bit me for a while.
+
+* patch autoreconf to run automake and aclocal (this is done but
+  not really available)
+
+================================================================
+
 Libraries:
 
 * Should support standalone library along with subdir library in same
index c434eaa9784f888cae13d6712138e1751e2e1037..e35aff7e5f4bed7ec9cfd632757dd41d697af5cd 100755 (executable)
@@ -1175,7 +1175,7 @@ sub handle_scripts
            && &variable_defined ($key . '_SCRIPTS'))
        {
            $scripts_installed = 1;
-           last;
+           # push (@check, 'check-' . $key . 'SCRIPTS');
        }
     }
 
index 8a2ec1fa5aa23a2da6f9db58ec86b5fba7c2ee54..b4d71de7f1c235a0f2e4dce8226d9dfd5822494a 100644 (file)
@@ -33,3 +33,18 @@ uninstall-@DIR@SCRIPTS:
        list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
          rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
        done
+
+## Uncomment line in handle_scripts when this is uncommented.
+## check-@DIR@SCRIPTS:
+##     pid=$$$$; list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+##       for opt in --help --version; do \
+##         if test -f $$p; then :; \
+##         else if test -f $(srcdir)/$$p; then \
+##           p=$(srcdir)/$$p; \
+##         else exit 1; fi; fi; \
+##         if $$p $$opt > .chkout$$pid 2> .chkerr$$pid \
+##              && test -n "`cat .chkout$$pid`" \
+##              && test -z "`cat .chkerr$$pid`"; then :; \
+##         else echo "$$p failed $$opt test" 1>&2; exit 1; fi; \
+##       done; \
+##     done; rm -f .chk???$$pid
index 7383738c188ce1f18966573c4abcf4434ef3854f..9b9fdbbcf20eb52c4bf8db5c399c517f12334032 100644 (file)
@@ -57,10 +57,10 @@ DIST_COMMON =  Makefile.am Makefile.in
 PACKAGE = @PACKAGE@
 VERSION = @VERSION@
 
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST) $(DATA)
-DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST) $(DATA)
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST)
+DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST)
 
 TAR = tar
 default: all
@@ -135,7 +135,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log stamp-h
        test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
index 8a2ec1fa5aa23a2da6f9db58ec86b5fba7c2ee54..b4d71de7f1c235a0f2e4dce8226d9dfd5822494a 100644 (file)
@@ -33,3 +33,18 @@ uninstall-@DIR@SCRIPTS:
        list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
          rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
        done
+
+## Uncomment line in handle_scripts when this is uncommented.
+## check-@DIR@SCRIPTS:
+##     pid=$$$$; list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+##       for opt in --help --version; do \
+##         if test -f $$p; then :; \
+##         else if test -f $(srcdir)/$$p; then \
+##           p=$(srcdir)/$$p; \
+##         else exit 1; fi; fi; \
+##         if $$p $$opt > .chkout$$pid 2> .chkerr$$pid \
+##              && test -n "`cat .chkout$$pid`" \
+##              && test -z "`cat .chkerr$$pid`"; then :; \
+##         else echo "$$p failed $$opt test" 1>&2; exit 1; fi; \
+##       done; \
+##     done; rm -f .chk???$$pid
index 1f492bb43a566173ab3c405016f4885c544d4777..19661fb73fa713fe6dea4380b8e2cd2d7acf2fc1 100644 (file)
@@ -64,10 +64,10 @@ DIST_COMMON =  ChangeLog Makefile.am Makefile.in
 PACKAGE = @PACKAGE@
 VERSION = @VERSION@
 
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST) $(DATA)
-DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST) $(DATA)
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST)
+DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
+       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST)
 
 TAR = tar
 default: all
@@ -146,7 +146,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log stamp-h
        test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
This page took 0.044027 seconds and 5 git commands to generate.