Adjust path to ATF data/documentation files after the import of atf-0.5.

This commit is contained in:
jmmv 2008-05-01 15:35:50 +00:00
parent 75562a3ca6
commit ec8287b4eb
2 changed files with 28 additions and 12 deletions

View File

@ -1,14 +1,16 @@
# $NetBSD: Makefile,v 1.2 2008/02/04 20:30:45 jmmv Exp $
# $NetBSD: Makefile,v 1.3 2008/05/01 15:35:50 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/dist/atf
.PATH: ${SRCDIR}/data ${SRCDIR}/subrs
.PATH: ${SRCDIR}/data ${SRCDIR}/atf-sh
.if ${MKSHARE} != "no"
# Files in ${SRCDIR}/data.
FILES= atf.pc
FILESDIR_atf.pc= /usr/lib/pkgconfig
FILES= atf-c.pc \
atf-c++.pc
FILESDIR_atf-c.pc= /usr/lib/pkgconfig
FILESDIR_atf-c++.pc= /usr/lib/pkgconfig
# Files in ${SRCDIR}/subrs.
FILESDIR= /usr/share/atf
@ -18,12 +20,22 @@ FILES+= atf.footer.subr \
atf.init.subr
.endif
realall: atf.pc
atf.pc: atf.pc.in
sed -e 's,__CXX__,${CXX},g' \
realall: atf-c.pc
atf-c.pc: atf-c.pc.in
sed -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CC__,gcc,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \
<${SRCDIR}/data/atf.pc.in >atf.pc
CLEANFILES+= atf.pc
<${SRCDIR}/data/atf-c.pc.in >atf-c.pc
CLEANFILES+= atf-c.pc
realall: atf-c++.pc
atf-c++.pc: atf-c++.pc.in
sed -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CXX__,g++,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \
<${SRCDIR}/data/atf-c++.pc.in >atf-c++.pc
CLEANFILES+= atf-c++.pc
.include <bsd.prog.mk>

View File

@ -1,9 +1,13 @@
# $NetBSD: Makefile,v 1.2 2008/02/04 20:30:45 jmmv Exp $
# $NetBSD: Makefile,v 1.3 2008/05/01 15:35:50 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/dist/atf
.PATH: ${SRCDIR} ${SRCDIR}/atf ${SRCDIR}/doc ${SRCDIR}/subrs
.PATH: ${SRCDIR}
.PATH: ${SRCDIR}/atf-c
.PATH: ${SRCDIR}/atf-c++
.PATH: ${SRCDIR}/atf-sh
.PATH: ${SRCDIR}/doc
.if ${MKDOC} != "no"
FILESDIR= /usr/share/doc/atf
@ -11,7 +15,7 @@ FILES= AUTHORS COPYING NEWS README ROADMAP
.endif
MAN= atf.7 atf-formats.5 atf-test-case.4 atf-test-program.1
MAN+= atf-c++-api.3 atf-sh-api.3
MAN+= atf-c-api.3 atf-c++-api.3 atf-sh-api.3
CLEANFILES+= atf.7 atf.7.tmp
atf.7: atf.7.in