summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2015-12-02 09:51:59 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-12-02 09:54:48 -0700
commitaea8a26c226e9d1f440f59d921c45510f8e605ef (patch)
tree62c2bf74b2bb1edb5e0627ccc29d099e1b5f07ba
parent10675f2019edf9eac75205604a6c080e06972a57 (diff)
downloadliberasurecode-aea8a26c226e9d1f440f59d921c45510f8e605ef.tar.gz
Create includedir on call to install-exec-hook
Debian maintainers reported that liberasurecode could not be built reproducibly. What happens is that erasurecode_version.h headers are non-determinstically installed in the target directory depending on the system clock. This is due to debian/tmp/usr/include not being created and the install-exec-hook ignores errors. The attached patch ensures target ${includedir} exists and therefore the headers will always be there. Signed-off-by: Chris Lamb <lamby@debian.org>
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8daa3b3..a3e8f1e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,8 @@ thisinclude_HEADERS = \
include/rs_vand/liberasurecode_rs_vand.h
install-exec-hook:
- -(cd $(DESTDIR)$(includedir) && \
+ -(mkdir -p $(DESTDIR)$(includedir) && \
+ cd $(DESTDIR)$(includedir) && \
rm -f erasurecode.h erasurecode_version.h \
erasurecode_stdinc.h erasurecode_helpers.h \
config_liberasurecode.h && \