]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix VPATH build for po-gram-gen2.h
authorDaiki Ueno <ueno@gnu.org>
Mon, 19 May 2014 08:51:17 +0000 (17:51 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 19 May 2014 08:51:17 +0000 (17:51 +0900)
gettext-tools/src/ChangeLog
gettext-tools/src/Makefile.am

index 418599664591d155780a1b23d02e09dc42623fca..596e3a53abe03472b5953faa6d8616bb5bdfc984 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-19  Daiki Ueno  <ueno@gnu.org>
+
+       * Makefile.am (po-gram-gen2.h): Adjust the directory to which
+       po-gram-gen.h, for VPATH build.
+
 2014-05-15  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
 
        msgfilter: Implement plural support
index 28e30f2cedf5ade61db090e6b14ad8662455d398..42899dab971fa14aa4ccf26f174efdeb9fc6157f 100644 (file)
@@ -450,7 +450,10 @@ BUILT_SOURCES = \
 
 po-lex.o po-lex.lo: po-gram-gen2.h
 po-gram-gen2.h: po-gram-gen.h
-       $(SED) -e 's/yy/po_gram_/g' -e 's/extern /extern DLL_VARIABLE /' $(srcdir)/po-gram-gen.h > $@-tmp
+       srcdir=''; \
+       test -f ./po-gram-gen.h || srcdir=$(srcdir)/; \
+       $(SED) -e 's/yy/po_gram_/g' -e 's/extern /extern DLL_VARIABLE /' \
+         $${srcdir}po-gram-gen.h > $@-tmp && \
        mv $@-tmp $@