]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
More fixes when finding common files.
authorTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 23:59:08 +0000 (23:59 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 23:59:08 +0000 (23:59 +0000)
automake.in

index 0cebad7aefb10387e104d1aa5bb9ae81cff021d3..f390b07c36c52dbb31ed6b36f7fee0bef046d374 100755 (executable)
@@ -251,8 +251,17 @@ ${am_file}_OBJECTS = ${am_file}.${kr}o" >&4
   amdir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'`
   if test "$amdir" = "$am_makefile"; then
      # Bogus.
-     amdir=
+     amdir=.
   fi
+  # Look for certain common files and make sure they are included.
+  dlist=
+  for cfile in $common; do
+     if test -f $amdir/$cfile; then
+       dlist="$dlist $cfile"
+     fi
+  done
+  echo "DIST_COMMON = $dlist" >&4
+  # Include "dist" boilerplate.
   case "$am_makefile" in
   */*) 
      cat $AM_DIR/dist-subd-vars.am >&4
@@ -268,14 +277,6 @@ ${am_file}_OBJECTS = ${am_file}.${kr}o" >&4
      fi
      ;;
   esac
-  # Now look for certain common files and make sure they are included.
-  dlist=
-  for cfile in $common; do
-     if test -f $amdir/$cfile; then
-       dlist="$dlist $cfile"
-     fi
-  done
-  echo "DIST_COMMON = $dlist" >&4
 
   sed '/^[^#=]*:/,$d' ${am_makefile}.am >&4
   sed -n '/^[^#=]*:/,$p' ${am_makefile}.am >&5