diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-03-25 09:47:50 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-03-25 09:47:50 +0100 |
commit | c64fb698d076b297b350f667719ba5d58551a7f9 (patch) | |
tree | d8434ffaa0b5094ec878664350e788241a12fe38 /src | |
parent | 23119d51a14c046dae35ae5e6ad9e35982d044fd (diff) | |
download | postgresql-c64fb698d076b297b350f667719ba5d58551a7f9.tar.gz postgresql-c64fb698d076b297b350f667719ba5d58551a7f9.zip |
Make update-unicode target work in vpath builds
Author: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/616c6873-83b5-85c0-93cb-548977c39c60@enterprisedb.com
Diffstat (limited to 'src')
-rw-r--r-- | src/common/unicode/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/unicode/Makefile b/src/common/unicode/Makefile index a3683dd86b9..60e01e748f8 100644 --- a/src/common/unicode/Makefile +++ b/src/common/unicode/Makefile @@ -12,14 +12,14 @@ subdir = src/common/unicode top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -override CPPFLAGS := -DFRONTEND $(CPPFLAGS) +override CPPFLAGS := -DFRONTEND -I. $(CPPFLAGS) LIBS += $(PTHREAD_LIBS) # By default, do nothing. all: update-unicode: unicode_norm_table.h unicode_combining_table.h unicode_east_asian_fw_table.h unicode_normprops_table.h unicode_norm_hashfunc.h - mv $^ ../../../src/include/common/ + mv $^ $(top_srcdir)/src/include/common/ $(MAKE) normalization-check # These files are part of the Unicode Character Database. Download @@ -33,7 +33,7 @@ UnicodeData.txt EastAsianWidth.txt DerivedNormalizationProps.txt CompositionExcl unicode_norm_hashfunc.h: unicode_norm_table.h unicode_norm_table.h: generate-unicode_norm_table.pl UnicodeData.txt CompositionExclusions.txt - $(PERL) generate-unicode_norm_table.pl + $(PERL) $< unicode_combining_table.h: generate-unicode_combining_table.pl UnicodeData.txt $(PERL) $^ >$@ @@ -58,7 +58,7 @@ submake-common: $(MAKE) -C .. all norm_test_table.h: generate-norm_test_table.pl NormalizationTest.txt - perl generate-norm_test_table.pl NormalizationTest.txt $@ + perl $^ $@ .PHONY: normalization-check |