From: Baruch Siach Date: Tue, 8 May 2018 17:43:28 +0000 (+0300) Subject: lib/Makefile: create include directory before headers installation X-Git-Tag: v1.3.5~3^2~61^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1123%2Fhead;p=thirdparty%2Fzstd.git lib/Makefile: create include directory before headers installation Make sure that $(INCLUDEDIR) exists before copying the headers there. Otherwise, the contest of header files is copied over $(DESTDIR)$(INCLUDEDIR), making it a regular file. While at it, remove $(DESTDIR)$(INCLUDEDIR) from the list of directories to create in the install-pc target. The install-pc target does not need this directory. --- diff --git a/lib/Makefile b/lib/Makefile index f64f192d4..d8178c7a5 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -163,7 +163,7 @@ install: install-pc install-static install-shared install-includes @echo zstd static and shared library installed install-pc: libzstd.pc - @$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ + @$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ @$(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/ install-static: libzstd.a @@ -178,6 +178,7 @@ install-shared: libzstd install-includes: @echo Installing includes + @$(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR)/ @$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR) @$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR) @$(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings