diff options
author | adrianp <adrianp> | 2007-09-08 10:41:01 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2007-09-08 10:41:01 +0000 |
commit | 1fbb14b20ea534f5c8755e022c33ffad0bb62a33 (patch) | |
tree | be75abdb902ce445a0e87040c489dbae3985238c /lang/gcc3-c | |
parent | 102fae438dd5b37d5cac4d6eb094b166d4615874 (diff) | |
download | pkgsrc-1fbb14b20ea534f5c8755e022c33ffad0bb62a33.tar.gz |
The v7 and v9 directories on SunOS may not exist so only try and remove
them if they do exist.
Diffstat (limited to 'lang/gcc3-c')
-rw-r--r-- | lang/gcc3-c/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/gcc3-c/Makefile b/lang/gcc3-c/Makefile index f89d8f121b2..f6713dfd132 100644 --- a/lang/gcc3-c/Makefile +++ b/lang/gcc3-c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2007/02/15 14:35:13 rillig Exp $ +# $NetBSD: Makefile,v 1.21 2007/09/08 10:41:01 adrianp Exp $ PKGNAME= gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION} COMMENT= GNU Compiler Collection, v3 - C compiler @@ -26,7 +26,13 @@ post-build: post-install: .if ${OPSYS} == "SunOS" - cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9 + cd ${GCC_ARCHDIR}/include && ${RM} -f fixed +.if exists(${GCC_ARCHDIR}/include/v7) + ${RMDIR} ${GCC_ARCHDIR}/include/v7 +.endif +.if exists(${GCC_ARCHDIR}/include/v9) + ${RMDIR} ${GCC_ARCHDIR}/include/v9 +.endif .endif ${INSTALL_DATA_DIR} ${GCC_PREFIX}/mk ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c.mk |