]> sourceware.org Git - automake.git/commitdiff
"--help" option now prints auto-recognized file names.
authorTom Tromey <tromey@redhat.com>
Fri, 17 Nov 1995 22:25:38 +0000 (22:25 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 17 Nov 1995 22:25:38 +0000 (22:25 +0000)
Allow AM_ overriding of more variables.

automake.in

index 9159345660449dd007d229220abdb4200c9c77e7..dd8147cce8f5f38cdb9e38ec716bca6e832ebed4 100755 (executable)
@@ -28,8 +28,10 @@ am_dir=@prefix@/share/automake
 usage="Usage: automake [--help] [--version] [Makefile]..."
 
 # These are commonly found files that we look for and automatically
-# include in DIST_FILES.
-common='TODO THANKS README NEWS COPYING COPYING.LIB INSTALL NLS ChangeLog configure configure.in config.guess config.sub mkinstalldirs install-sh texinfo.tex'
+# include in DIST_FILES.  NOTE if you add something here, make sure
+# you add it in the right place -- that is, so that the "--help" still
+# lines up nicely.
+common='THANKS TODO README NEWS COPYING COPYING.LIB INSTALL NLS ChangeLog configure configure.in config.guess config.sub mkinstalldirs install-sh texinfo.tex'
 
 # NLS nuisances.
 # Only set `LANG' and `LC_ALL' to "C" if already set.
@@ -42,7 +44,15 @@ mfiles=
 while test $# -gt 0; do
    case "$1" in
     --help | --h* )
-       echo "${usage}" 1>&2
+       echo $usage
+       echo
+       echo "Files which are automatically distributed, if found:"
+       set $common
+       while test $# -gt 0; do
+         echo "  $1            $2"
+         shift
+         shift
+       done
        exit 0
        ;;
 
@@ -157,9 +167,26 @@ for am_makefile in $mfiles; do
 
   eval `sed -n -f $am_rmnl ${am_makefile}.am | sed -n -f $am_ass`
 
+  #
+  # If a variable is set at configure time, we still need to know the
+  # values it can assume (statically).  This is done using the AM_
+  # forms in the Makefile.am.  Handle it now.
+  #
   test -n "$AM_PROGRAMS" && {
      PROGRAMS=$AM_PROGRAMS
   }
+  test -n "$AM_LIBPROGRAMS" && {
+     LIBPROGRAMS=$AM_LIBPROGRAMS
+  }
+  test -n "$AM_SCRIPTS" && {
+     SCRIPTS=$AM_SCRIPTS
+  }
+  test -n "$AM_LIBSCRIPTS" && {
+     LIBSCRIPTS=$AM_LIBSCRIPTS
+  }
+  test -n "$AM_LIBRARIES" && {
+     LIBRARIES=$AM_LIBRARIES
+  }
 
   if grep @kr@ ${am_makefile}.am >/dev/null; then
     kr='${kr}'
This page took 0.031678 seconds and 5 git commands to generate.