Remove /usr/include/g++/* before installing headers --- it may contain

obsolete headers that have to be removed.
Don't install "compatibility" headers --- our headers are C++ safe and
GNU's headers don't match our library.
This commit is contained in:
jtc 1993-11-17 19:54:46 +00:00
parent 653d8ef24c
commit 1fffdc0cb5

View File

@ -1,25 +1,14 @@
# $Id: Makefile,v 1.6 1993/09/30 22:42:09 jtc Exp $
# $Id: Makefile,v 1.7 1993/11/17 19:54:46 jtc Exp $
SUBDIR= libg++ genclass
INCLUDEDIRS= iostream libg++ g++-include
INCLUDEDIRS= iostream libg++
beforeinstall:
@-if [ ! -d ${DESTDIR}/usr/include/g++ ]; then \
mkdir ${DESTDIR}/usr/include/g++; \
chown ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include/g++; \
chmod 755 ${DESTDIR}/usr/include/g++; \
fi
@-if [ ! -d ${DESTDIR}/usr/include/g++/gen ]; then \
mkdir ${DESTDIR}/usr/include/g++/gen; \
chown ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include/g++/gen; \
chmod 755 ${DESTDIR}/usr/include/g++/gen; \
fi
@-if [ ! -d ${DESTDIR}/usr/include/g++/sys ]; then \
mkdir ${DESTDIR}/usr/include/g++/sys; \
chown ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include/g++/sys; \
chmod 755 ${DESTDIR}/usr/include/g++/sys; \
fi
rm -rf ${DESTDIR}/usr/include/g++
install -d -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/include/g++
install -d -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/include/g++/gen
@-for i in ${INCLUDEDIRS}; do \
echo installing includes from $$i ; \
(cd $$i; for j in *.[ih]; do \
@ -28,12 +17,6 @@ beforeinstall:
${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 -o ${BINOWN} -g ${BINGRP} -m 644 $$j \
${DESTDIR}/usr/include/g++/sys/$$j; \
done)
@echo installing includes from g++-include/gen
@(cd g++-include/gen ; for j in *.*P; do \
cmp -s $$j ${DESTDIR}/usr/include/g++/gen/$$j || \