]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove last vestiges of archive.h.in; fix 'make check'
authorTim Kientzle <kientzle@gmail.com>
Sat, 3 May 2008 13:50:32 +0000 (09:50 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 3 May 2008 13:50:32 +0000 (09:50 -0400)
SVN-Revision: 18

libarchive/test/Makefile

index 24b09544a88993695f6d7fdab1f3e68fc063a18e..1bc8356b6400ed01325a001b258622e12397bda1 100644 (file)
@@ -73,12 +73,9 @@ TESTS= \
 SRCS= ${LA_SRCS}                               \
        ${TESTS}                                \
        ${.OBJDIR}/list.h                       \
-       ${.OBJDIR}/archive.h                    \
        main.c                                  \
        read_open_memory.c
 
-CLEANFILES+= list.h archive.h
-
 NO_MAN=yes
 
 PROG=libarchive_test
@@ -87,12 +84,7 @@ DPADD=${LIBBZ2} ${LIBZ}
 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
 LDADD= -lz -lbz2
 CFLAGS+= -static -g
-CFLAGS+= -I${.OBJDIR}
-CFLAGS+= -I${.CURDIR}
 CFLAGS+= -I${LA_SRCDIR}
-# Without this, libarchive source files find archive.h in LA_SRCDIR,
-# which may not be the same as archive.h in the test dir.
-CFLAGS+= -I-
 
 # Uncomment to link against dmalloc
 LDADD+= -L/usr/local/lib -ldmalloc
@@ -103,16 +95,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
 
-CLEANFILES += *.out *.o *.core *~ list.h archive.h
+CLEANFILES += *.out *.o *.core *~ list.h
 
 cleantest:
        -chmod -R +w /tmp/libarchive_test.*