archive.h is no longer constructed from archive.h.in,

so we can rename it and drop some no-longer-necessary
build magic from the Makefile.
This commit is contained in:
Tim Kientzle 2008-06-15 05:05:53 +00:00
parent 546c9253a3
commit f9fe0a0abb
3 changed files with 1 additions and 15 deletions

View File

@ -16,16 +16,8 @@ WARNS?= 6
# Headers to be installed in /usr/include
INCS= archive.h archive_entry.h
# For now, archive.h is the same as archive.h.in.
archive.h: archive.h.in
cat ${.CURDIR}/archive.h.in > archive.h
# archive.h needs to be cleaned
CLEANFILES+= archive.h
# Sources to be compiled.
SRCS= archive.h \
archive_check_magic.c \
SRCS= archive_check_magic.c \
archive_entry.c \
archive_entry_copy_stat.c \
archive_entry_stat.c \

View File

@ -73,7 +73,6 @@ TESTS= \
SRCS= ${LA_SRCS} \
${TESTS} \
${.OBJDIR}/list.h \
${.OBJDIR}/archive.h \
main.c \
read_open_memory.c
@ -96,11 +95,6 @@ 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