diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-05-19 17:51:17 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-05-19 17:51:17 +0900 |
commit | ce27989475881c28198c436ddb9855bdf0645e7f (patch) | |
tree | 9cbbfc739fbbf1a3cacc889fba6d72e756e842a5 /gettext-tools | |
parent | d711425b1d99250cabbebb110eccec351ce87d38 (diff) | |
download | external_gettext-ce27989475881c28198c436ddb9855bdf0645e7f.zip external_gettext-ce27989475881c28198c436ddb9855bdf0645e7f.tar.gz external_gettext-ce27989475881c28198c436ddb9855bdf0645e7f.tar.bz2 |
build: Fix VPATH build for po-gram-gen2.h
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/src/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-tools/src/Makefile.am | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 4185996..596e3a5 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -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 diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am index 28e30f2..42899da 100644 --- a/gettext-tools/src/Makefile.am +++ b/gettext-tools/src/Makefile.am @@ -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 $@ |