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>
This commit is contained in:
Chris Lamb 2015-12-02 09:51:59 -07:00 committed by Tushar Gohad
parent 10675f2019
commit aea8a26c22
1 changed files with 2 additions and 1 deletions

View File

@ -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 && \