diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-11-25 17:49:56 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-11-25 17:49:56 +0900 |
commit | 89108f5856b455640e288e2ce29d8c5904c12a3b (patch) | |
tree | fb88f84631a1e481caa7fdcd7997af557e22253c /data | |
parent | bba0eec8d2f5a439be4169fa4b454bea4028e2ae (diff) |
Fix build issues with MSVC
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index fc57794..6664637 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -63,9 +63,14 @@ if CROSS_COMPILING language-subtag-registry.xml: language-subtag-registry reg2xml.c Makefile @echo Warning: Unable to rebuild $@ when cross-compiling else +if REBUILD_DATA language-subtag-registry.xml: language-subtag-registry reg2xml$(EXEEXT) Makefile $(AM_V_GEN) $(builddir)/reg2xml$(EXEEXT) $(srcdir)/language-subtag-registry $@.tmp; \ head -1 $@.tmp | grep -E '^<\?xml version'>/dev/null 2>&1 && mv $@.tmp $@ || (echo "E: $@ isn't an expected result"; rm $@.tmp) +else +language-subtag-registry.xml: + @echo Warning: the rebuild of $@ is explicitly disabled. +endif endif stamp-core-zip: -rm core.zip @@ -94,8 +99,10 @@ ldmlsupplemental_DATA = \ $(NULL) # noinst_PROGRAMS = \ - reg2xml \ $(NULL) +if REBUILD_DATA +noinst_PROGRAMS += reg2xml +endif # reg2xml_SOURCES = \ reg2xml.c \ |