opencryptoki / libica

Crypto library for s390x.
Other
9 stars 17 forks source link

build: exclude generated sources for distribution #101

Closed holger-dengler closed 2 years ago

holger-dengler commented 2 years ago

Exclude the generated source file for icastats_test. This fixes the distcheck and related build targets by enforcing the re-generation of the source file.

Signed-off-by: Holger Dengler dengler@linux.ibm.com

More detailed explanation: the generated source-file for the icastats_test executable contains the absolute path to the icastats binary. This should avoid, that the test executable use another icastats version for the test (e.g. the one from a package install). For the distribution make targets (dist, dictcheck, et. al.) it is important, that the generated source file test/icastats_test.c is excluded from the distribution tarball, so that the source generation is triggered correctly for the rebuild, e.g. for make distcheck.

Without this commit, a clean ./bootstrap.sh ; ./configure ; make distcheck will fail, caused by the wrong lookup of the icastats-binary in icastats_test.

holger-dengler commented 2 years ago

@msmeissn Marcus, maybe this PR is also helpful for you?