install g++ includes when doing a "make install"

This commit is contained in:
cgd 1993-07-15 19:05:11 +00:00
parent 03f7c1b72f
commit 6d907e7559
1 changed files with 23 additions and 0 deletions

View File

@ -1,2 +1,25 @@
SUBDIR= libg++ SUBDIR= libg++
INCLUDEDIRS= iostream libg++ g++-include
beforeinstall:
@-if [ ! -d ${DESTDIR}/usr/include/g++ ]; then \
mkdir ${DESTDIR}/usr/include/g++; \
fi
@-if [ ! -d ${DESTDIR}/usr/include/g++/sys ]; then \
mkdir ${DESTDIR}/usr/include/g++/sys; \
fi
@-for i in ${INCLUDEDIRS}; do \
echo installing includes from $$i ; \
(cd $$i; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/g++/$$j || \
install -c -m 644 $$j ${DESTDIR}/usr/include/g++/$$j; \
done); \
done
@echo installing includes from g++-include/sys
@(cd g++-include/sys ; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/g++/sys/$$j || \
install -c -m 644 $$j ${DESTDIR}/usr/include/g++/sys/$$j; \
done)
.include <bsd.subdir.mk> .include <bsd.subdir.mk>