diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index b92f8cd56d..b38bf884b9 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.38 2020/01/22 06:56:50 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.39 2020/01/22 07:58:27 jsing Exp $ |
| 2 | 2 | ||
| 3 | LIB= crypto | 3 | LIB= crypto |
| 4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
| @@ -411,6 +411,16 @@ HDRS_GEN=\ | |||
| 411 | 411 | ||
| 412 | prereq: obj_mac.h | 412 | prereq: obj_mac.h |
| 413 | 413 | ||
| 414 | check_includes: prereq | ||
| 415 | @cd ${.CURDIR}; for i in $(HDRS) $(HDRS_GEN); do \ | ||
| 416 | j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \ | ||
| 417 | (echo \"`basename $$i` differs from installed version; \" \ | ||
| 418 | \"did you forget 'make includes'?\" && false)"; \ | ||
| 419 | eval "$$j"; \ | ||
| 420 | done; | ||
| 421 | |||
| 422 | all: check_includes | ||
| 423 | |||
| 414 | includes: prereq | 424 | includes: prereq |
| 415 | @test -d ${DESTDIR}/usr/include/openssl || \ | 425 | @test -d ${DESTDIR}/usr/include/openssl || \ |
| 416 | mkdir ${DESTDIR}/usr/include/openssl | 426 | mkdir ${DESTDIR}/usr/include/openssl |
