diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-07-01 14:22:09 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-07-01 14:22:09 +0000 |
commit | 8cae36a25d4192d6fe5b5e7536a7368f9b46e164 (patch) | |
tree | 3259e02a9293b7d868f8083272c792d38bfaa0fe | |
parent | bd95f440ef0c9ff5b754d94b1d51b899092c8496 (diff) |
Unbreak "make includes" with an empty /usr/include by creating the 'objc'
directory if it doesn't exist.
ok sthen@, espie@
-rw-r--r-- | gnu/usr.bin/cc/libobjc/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/libobjc/Makefile b/gnu/usr.bin/cc/libobjc/Makefile index c4b9bc9844c..40613ed1ae6 100644 --- a/gnu/usr.bin/cc/libobjc/Makefile +++ b/gnu/usr.bin/cc/libobjc/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/lib/libobjc/Makefile,v 1.34.2.1 2009/08/03 08:13:06 kensmith Exp $ -# $OpenBSD: Makefile,v 1.2 2012/09/01 06:56:03 guenther Exp $ +# $OpenBSD: Makefile,v 1.3 2013/07/01 14:22:08 mpi Exp $ OBJCDIR=${.CURDIR}/../../../gcc/libobjc GCCDIR= ${.CURDIR}/../../../gcc/gcc @@ -41,6 +41,8 @@ SRCS+= ${GENHDRS} .if !empty(INCS) includes: ${INCS} + @test -d ${DESTDIR}/usr/include/objc || \ + mkdir ${DESTDIR}/usr/include/objc ${INSTALL} -C -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \ ${DESTDIR}/usr/include/objc .endif |