]> sourceware.org Git - automake.git/commitdiff
For PR automake/46: handle-languages
authorTom Tromey <tromey@redhat.com>
Mon, 7 May 2001 16:31:01 +0000 (16:31 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 7 May 2001 16:31:01 +0000 (16:31 +0000)
* tests/Makefile.am (TESTS): Added subdir5.test.
(XFAIL_TESTS): Likewise.
* tests/subdir5.test: New file.

ChangeLog
Makefile.in
lib/Automake/Makefile.in
lib/Makefile.in
m4/Makefile.in
tests/Makefile.am
tests/Makefile.in
tests/subdir5.test [new file with mode: 0755]

index 28965f5929d4b00597d10288d8c29a77e6a21be6..06e6ee47dec7c67707ad2b5c1d70bdded0ee917a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2001-05-06  Tom Tromey  <tromey@redhat.com>
 
+       For PR automake/46:
+       * tests/Makefile.am (TESTS): Added subdir5.test.
+       (XFAIL_TESTS): Likewise.
+       * tests/subdir5.test: New file.
+
        * tests/subobj6.test (wish_SOURCES): Use $MAKE.
        * tests/subobj5.test (wish_SOURCES): Use $MAKE.
 
index 8118fac2058a2074969bb9d7781f296dabba81e2..4b2d010615d17c92bc18ef3bf1d47af8f72a2550 100644 (file)
@@ -434,6 +434,10 @@ distdir: $(DISTFILES)
        $(mkinstalldirs) $(distdir)/.
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
          if test -d $$d/$$file; then \
            cp -pR $$d/$$file $(distdir) \
            || exit 1; \
index 2de2fd57c5172eeba3ac578600439bb0a7ae9b6d..e7fd7b41221a4921b936c84bfad2d907f63e0ff7 100644 (file)
@@ -125,6 +125,10 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
          if test -d $$d/$$file; then \
            cp -pR $$d/$$file $(distdir) \
            || exit 1; \
index 29af4d7db963c1e835945ffe2b70aa20bb14b85c..bc408eaca7068f024a48f2baee1936dabdef39c7 100644 (file)
@@ -199,6 +199,10 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
          if test -d $$d/$$file; then \
            cp -pR $$d/$$file $(distdir) \
            || exit 1; \
index 9908ee07cb030ff7fb5b0af4922a50d81fb3b487..c338bc7ccd4560b81cdacd05e27e0155bd7bde03 100644 (file)
@@ -135,6 +135,10 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
          if test -d $$d/$$file; then \
            cp -pR $$d/$$file $(distdir) \
            || exit 1; \
index 5cf16625e7f7907cd0d8e9bf10e38e0746bd7769..d836663a00453260755dd63067388dc440687d75 100644 (file)
@@ -2,7 +2,8 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = objc.test subobj2.test yaccvpath.test texinfo10.test subobj6.test
+XFAIL_TESTS = objc.test subobj2.test yaccvpath.test texinfo10.test \
+subobj6.test subdir5.test
 
 TESTS =        \
 acinclude.test \
@@ -240,6 +241,7 @@ subdir.test \
 subdir2.test \
 subdir3.test \
 subdir4.test \
+subdir5.test \
 subdirbuiltsources.test \
 subdircond.test \
 subobj.test \
index 7b859a1e35b3370ff6e85911ec4fee0ada8c493c..0383a090dee370724b282c992fe2a61e0351c958 100644 (file)
@@ -75,7 +75,9 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = objc.test subobj2.test yaccvpath.test texinfo10.test subobj6.test
+XFAIL_TESTS = objc.test subobj2.test yaccvpath.test texinfo10.test \
+subobj6.test subdir5.test
+
 
 TESTS = \
 acinclude.test \
@@ -313,6 +315,7 @@ subdir.test \
 subdir2.test \
 subdir3.test \
 subdir4.test \
+subdir5.test \
 subdirbuiltsources.test \
 subdircond.test \
 subobj.test \
diff --git a/tests/subdir5.test b/tests/subdir5.test
new file mode 100755 (executable)
index 0000000..9e7b571
--- /dev/null
@@ -0,0 +1,59 @@
+#! /bin/sh
+
+# Test to make sure that adding a new directory works.
+# PR automake/46
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(a.c)
+AM_INIT_AUTOMAKE(maude, 1.0)
+AM_PROG_CC_C_O
+AC_PROG_CC
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = wish
+wish_SOURCES = a.c
+END
+
+cat > a.c << 'END'
+#include <stdio.h>
+int main ()
+{
+   printf ("hi liver!\n");
+   return 0;
+}
+END
+
+set -e
+
+$needs_autoconf
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE --include-deps --copy --add-missing
+./configure
+$MAKE
+
+# Now add a new directory.
+cat > configure.in << 'END'
+AC_INIT(a.c)
+AM_INIT_AUTOMAKE(maude, 1.0)
+AM_PROG_CC_C_O
+AC_PROG_CC
+AC_OUTPUT(Makefile maude/Makefile)
+END
+
+mkdir maude
+cat > maude/Makefile.am << 'END'
+include_HEADERS = foo.h
+END
+
+: > maude/foo.h
+
+echo 'SUBDIRS = maude' >> Makefile.am
+
+# We want a simple rebuild to create maude/Makefile automatically.
+$MAKE
This page took 0.044877 seconds and 5 git commands to generate.