From aea8a26c226e9d1f440f59d921c45510f8e605ef Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 2 Dec 2015 09:51:59 -0700 Subject: 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 --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 && \ -- cgit v1.2.1