fix dist for no subdirs
authorDavid J. MacKenzie <djm@gnu.org>
Wed, 28 Sep 1994 17:34:10 +0000 (17:34 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Wed, 28 Sep 1994 17:34:10 +0000 (17:34 +0000)
automake.in
compile-vars.am
dist.am

index b4f400a..23c0b6b 100755 (executable)
@@ -187,7 +187,8 @@ ${am_file}_OBJECTS = ${am_file}.${kr}o" >&4
      cat $AM_DIR/dist-subd.am >&5 ;;
   *) test "$target_distname" != explicit && cat $AM_DIR/distname.am >&5
      cat $AM_DIR/dist-vars.am >&4
-     cat $AM_DIR/dist.am >&5 ;;
+     if test -n "SUBDIRS"; then cat $AM_DIR/dist-subd-top.am >&5
+     else cat $AM_DIR/dist.am >&5; fi ;;
   esac
 
   cat $AM_DIR/footer.am >&5
index 4105e7f..87f890a 100644 (file)
@@ -4,6 +4,7 @@ YACC = @YACC@
 ANSI2KNR = ./ansi2knr
 
 DEFS = @DEFS@
+CPPFLAGS = @CPPFLAGS@
 CFLAGS = @CFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
diff --git a/dist.am b/dist.am
index f3e432c..e497379 100644 (file)
--- a/dist.am
+++ b/dist.am
@@ -5,10 +5,6 @@ dist: $(DIST_FILES) distname
          ln $(srcdir)/$$file `cat distname` || \
            { echo copying $$file instead; cp -p $(srcdir)/$$file `cat distname`;}; \
        done
-       if test -n "$(SUBDIRS)"; then \
-       for subdir in $(SUBDIRS); do \
-         (cd $$subdir; $(MAKE) subdir=$$subdir $@); done; \
-       fi
        chmod -R a+r `cat distname`
        tar -chozf `cat distname`.tar.gz `cat distname`
        rm -rf `cat distname` distname