Until the old archive.h.in gets renamed to archive.h in the repository,
we still need some Makefile trickery to ensure archive.h is correctly built for the test harness.
This commit is contained in:
parent
2af07c4e1b
commit
a212de8851
@ -73,6 +73,7 @@ TESTS= \
|
||||
SRCS= ${LA_SRCS} \
|
||||
${TESTS} \
|
||||
${.OBJDIR}/list.h \
|
||||
${.OBJDIR}/archive.h \
|
||||
main.c \
|
||||
read_open_memory.c
|
||||
|
||||
@ -95,6 +96,11 @@ WARNS=6
|
||||
check test: libarchive_test
|
||||
./libarchive_test -v -r ${.CURDIR}
|
||||
|
||||
# Build archive.h, but in our .OBJDIR, not libarchive's
|
||||
# This keeps libarchive_test and libarchive builds completely separate.
|
||||
${.OBJDIR}/archive.h: ${LA_SRCDIR}/archive.h.in ${LA_SRCDIR}/Makefile
|
||||
cd ${LA_SRCDIR} && unset MAKEOBJDIRPREFIX && MAKEOBJDIR=${.OBJDIR} make archive.h
|
||||
|
||||
# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
|
||||
${.OBJDIR}/list.h: ${TESTS} Makefile
|
||||
(cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user