]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix build failure when people set DESTDIR already during 'make'.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Sep 2024 11:41:03 +0000 (13:41 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Sep 2024 11:41:48 +0000 (13:41 +0200)
Reported by Henrik Holst <henrik.holst@outlook.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00005.html>.

* gettext-tools/src/Makefile.am (textstyle.h): Pass an empty DESTDIR to
libtextstyle/lib/Makefile.

gettext-tools/src/Makefile.am

index 6d1a1c26a4a96adb0fe827ecf18f9ac6e7478c3a..5f8361428c625d84dc93a3e2aa831ab8fbf23461 100644 (file)
@@ -344,7 +344,7 @@ else
 textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h:
        here=`pwd`; \
        cd ../../libtextstyle/lib && \
-         $(MAKE) install-nobase_includeHEADERS install-nobase_nodist_includeHEADERS includedir="$$here"
+         $(MAKE) install-nobase_includeHEADERS install-nobase_nodist_includeHEADERS DESTDIR= includedir="$$here"
 BUILT_SOURCES    += textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h
 MOSTLYCLEANFILES += textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h
 # Where to find the built libtextstyle library.