summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2016-10-16 19:28:44 +0000
committertb <>2016-10-16 19:28:44 +0000
commit0293a237b08ee4da5eacd1c96495dc1b9831d520 (patch)
tree275449606f90210c8e8376371df9bc81d2f23ea4
parent1acc763f8abc805a5a68ff035a1f538b0d6ccf65 (diff)
downloadopenbsd-0293a237b08ee4da5eacd1c96495dc1b9831d520.tar.gz
openbsd-0293a237b08ee4da5eacd1c96495dc1b9831d520.tar.bz2
openbsd-0293a237b08ee4da5eacd1c96495dc1b9831d520.zip
Move libcrypto, librpcsvc and gnu/usr.bin/cc/include from RDIRS to PRDIRS,
and add prereq targets, so some header files are generated by BUILDUSER during 'make prereq' instead of by root during 'make includes'. Switch the order of 'make cleandir' and 'make includes' during 'make build' so we don't generate many files twice. Except for some machine@ symlinks from ${MACHINE}/stand, /usr/obj is now clean from files generated by root during 'make build'. Those will be cleaned up in a second step. help, testing & ok deraadt, input from natano, further testing rpe
-rw-r--r--src/lib/libcrypto/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile
index fb12a60279..173198dbab 100644
--- a/src/lib/libcrypto/Makefile
+++ b/src/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.7 2016/09/23 21:49:30 natano Exp $ 1# $OpenBSD: Makefile,v 1.8 2016/10/16 19:28:44 tb Exp $
2 2
3LIB= crypto 3LIB= crypto
4 4
@@ -373,7 +373,9 @@ HDRS_GEN=\
373 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \ 373 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
374 ${.OBJDIR}/obj_mac.h 374 ${.OBJDIR}/obj_mac.h
375 375
376includes: obj_mac.h 376prereq: obj_mac.h
377
378includes: prereq
377 @test -d ${DESTDIR}/usr/include/openssl || \ 379 @test -d ${DESTDIR}/usr/include/openssl || \
378 mkdir ${DESTDIR}/usr/include/openssl 380 mkdir ${DESTDIR}/usr/include/openssl
379 @for i in $(HDRS); do \ 381 @for i in $(HDRS); do \