]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support for VPATH builds.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Nov 2006 12:41:36 +0000 (12:41 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:24 +0000 (12:14 +0200)
gettext-tools/libgettextpo/ChangeLog
gettext-tools/libgettextpo/Makefile.am
gnulib-local/ChangeLog
gnulib-local/modules/libglib
gnulib-local/modules/libxml

index 9ae3c271d55991076288d88afcd48e69e32fb411..b99c069a930fd43f45350583d7315a9c580b721c 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-26  Bruno Haible  <bruno@clisp.org>
+
+       Support for VPATH builds.
+       * Makefile.am (config.h): Don't prepend "$(srcdir)/" to the source
+       file name if it is present in the build directory.
+
 2006-11-03  Bruno Haible  <bruno@clisp.org>
 
        Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
index dee5c2b66c734f810b65babd3b2adb06100b6af6..02d8a86f5097f5302c740399dfc8b2139c4cf2f3 100644 (file)
@@ -131,8 +131,9 @@ config.h: $(BUILT_SOURCES)
              case $$f in \
                *.c | *.$(OBJEXT) | *.lo ) \
                  sf=`echo "$$f" | sed -e 's,\\.[^.]*$$,,'`.c; \
+                 test -f $$sf || sf=$(srcdir)/$$sf; \
                  of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \
-                 $(COMPILE) -c $(srcdir)/$$sf || { rm -f config.h; exit 1; }; \
+                 $(COMPILE) -c $$sf || { rm -f config.h; exit 1; }; \
                  sh ./exported.sh $$of 1>&5; \
                  rm -f $$of; \
                  ;; \
index 3cfbae7f1f756d3d49b443c68267a0ec1d7a54b2..b83b18e9fa2cb7f99cef277bd120df61178ce1a5 100644 (file)
@@ -1,3 +1,10 @@
+2006-11-26  Bruno Haible  <bruno@clisp.org>
+
+       Support for VPATH builds.
+       * modules/libglib (glib/*.h): Create the glib directory if necessary.
+       * modules/libxml (libxml/*.h): Create the libxml directory if
+       necessary.
+
 2006-11-26  Bruno Haible  <bruno@clisp.org>
 
        * lib/xalloc.h (xmemdup): Add a typesafe C++ template variant.
index f72af33598adfe4440e8511ae7c03c7fc80b73bf..2c8c4c0bd8b9e8c450e49e78fd1e724ab6944bbd 100644 (file)
@@ -42,36 +42,42 @@ glibconfig.h: glibconfig_.h
        mv -f $@-t $@
 
 glib/ghash.h: glib/ghash_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/ghash_.h; \
        } > $@-t
        mv -f $@-t $@
 
 glib/glist.h: glib/glist_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/glist_.h; \
        } > $@-t
        mv -f $@-t $@
 
 glib/gprimes.h: glib/gprimes_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/gprimes_.h; \
        } > $@-t
        mv -f $@-t $@
 
 glib/gstrfuncs.h: glib/gstrfuncs_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/gstrfuncs_.h; \
        } > $@-t
        mv -f $@-t $@
 
 glib/gstring.h: glib/gstring_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/gstring_.h; \
        } > $@-t
        mv -f $@-t $@
 
 glib/gtypes.h: glib/gtypes_.h
+       test -d glib || mkdir glib
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/glib/gtypes_.h; \
        } > $@-t
index 922f00bde05a04b4218422ccf4e5bf7c306f7929..8877c73ac77d32179646073a6e8e2ce11dba731f 100644 (file)
@@ -108,282 +108,329 @@ Makefile.am:
 BUILT_SOURCES += $(LIBXML_H)
 
 libxml/DOCBparser.h: libxml/DOCBparser_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/DOCBparser_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/HTMLparser.h: libxml/HTMLparser_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/HTMLparser_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/HTMLtree.h: libxml/HTMLtree_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/HTMLtree_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/SAX.h: libxml/SAX_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/SAX_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/SAX2.h: libxml/SAX2_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/SAX2_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/c14n.h: libxml/c14n_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/c14n_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/catalog.h: libxml/catalog_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/catalog_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/chvalid.h: libxml/chvalid_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/chvalid_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/debugXML.h: libxml/debugXML_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/debugXML_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/dict.h: libxml/dict_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/dict_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/encoding.h: libxml/encoding_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/encoding_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/entities.h: libxml/entities_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/entities_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/globals.h: libxml/globals_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/globals_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/hash.h: libxml/hash_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/hash_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/list.h: libxml/list_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/list_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/nanoftp.h: libxml/nanoftp_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/nanoftp_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/nanohttp.h: libxml/nanohttp_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/nanohttp_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/parser.h: libxml/parser_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/parser_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/parserInternals.h: libxml/parserInternals_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/parserInternals_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/pattern.h: libxml/pattern_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/pattern_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/relaxng.h: libxml/relaxng_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/relaxng_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/schemasInternals.h: libxml/schemasInternals_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/schemasInternals_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/schematron.h: libxml/schematron_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/schematron_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/threads.h: libxml/threads_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/threads_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/tree.h: libxml/tree_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/tree_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/uri.h: libxml/uri_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/uri_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/valid.h: libxml/valid_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/valid_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xinclude.h: libxml/xinclude_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xinclude_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xlink.h: libxml/xlink_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xlink_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlIO.h: libxml/xmlIO_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlIO_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlautomata.h: libxml/xmlautomata_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlautomata_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlerror.h: libxml/xmlerror_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlerror_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlexports.h: libxml/xmlexports_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlexports_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlmemory.h: libxml/xmlmemory_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlmemory_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlmodule.h: libxml/xmlmodule_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlmodule_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlreader.h: libxml/xmlreader_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlreader_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlregexp.h: libxml/xmlregexp_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlregexp_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlsave.h: libxml/xmlsave_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlsave_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlschemas.h: libxml/xmlschemas_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlschemas_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlschemastypes.h: libxml/xmlschemastypes_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlschemastypes_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlstring.h: libxml/xmlstring_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlstring_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlunicode.h: libxml/xmlunicode_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlunicode_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlversion.h: libxml/xmlversion_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlversion_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xmlwriter.h: libxml/xmlwriter_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xmlwriter_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xpath.h: libxml/xpath_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xpath_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xpathInternals.h: libxml/xpathInternals_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xpathInternals_.h; \
        } > $@-t
        mv -f $@-t $@
 
 libxml/xpointer.h: libxml/xpointer_.h
+       test -d libxml || mkdir libxml
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/libxml/xpointer_.h; \
        } > $@-t