Special-case when amdir=.
authorTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 23:54:38 +0000 (23:54 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 23:54:38 +0000 (23:54 +0000)
automake.in

index 72e0365..0cebad7 100755 (executable)
@@ -249,6 +249,10 @@ ${am_file}_OBJECTS = ${am_file}.${kr}o" >&4
   # Handle "dist" targets.
   #
   amdir=`echo "$am_makefile" | sed 's,//*[^/][^/]*$,,g'`
+  if test "$amdir" = "$am_makefile"; then
+     # Bogus.
+     amdir=
+  fi
   case "$am_makefile" in
   */*) 
      cat $AM_DIR/dist-subd-vars.am >&4