diff options
author | schwarze <> | 2016-11-05 15:01:54 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-05 15:01:54 +0000 |
commit | 295aa404cc84d16f9fe523312a77bab3379562a4 (patch) | |
tree | f45911a7a9e85b11967385fdaab11aa744044248 | |
parent | adb72aa0e0ceb7ed3651bd3410f1509d77ad825e (diff) | |
download | openbsd-295aa404cc84d16f9fe523312a77bab3379562a4.tar.gz openbsd-295aa404cc84d16f9fe523312a77bab3379562a4.tar.bz2 openbsd-295aa404cc84d16f9fe523312a77bab3379562a4.zip |
after getting rid of the pod files, clean up the Makefiles; ok bcook@
-rw-r--r-- | src/lib/libcrypto/Makefile | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 16 | ||||
-rw-r--r-- | src/lib/libssl/Makefile | 9 | ||||
-rw-r--r-- | src/lib/libssl/doc/Makefile (renamed from src/lib/libssl/man/Makefile) | 32 |
4 files changed, 23 insertions, 41 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 43aeef3226..e3ab864a80 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,8 +1,12 @@ | |||
1 | # $OpenBSD: Makefile,v 1.11 2016/11/05 14:57:29 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.12 2016/11/05 15:01:54 schwarze Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | 4 | ||
5 | .include <bsd.own.mk> | ||
6 | .ifndef NOMAN | ||
5 | SUBDIR= man | 7 | SUBDIR= man |
8 | .endif | ||
9 | |||
6 | PC_FILES=libcrypto.pc | 10 | PC_FILES=libcrypto.pc |
7 | 11 | ||
8 | CLEANFILES=${PC_FILES} | 12 | CLEANFILES=${PC_FILES} |
@@ -11,7 +15,6 @@ LCRYPTO_SRC= ${.CURDIR} | |||
11 | 15 | ||
12 | CFLAGS+= -Wall -Wundef -Werror | 16 | CFLAGS+= -Wall -Wundef -Werror |
13 | 17 | ||
14 | .include <bsd.own.mk> # for 'NOPIC' definition | ||
15 | .if !defined(NOPIC) | 18 | .if !defined(NOPIC) |
16 | CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN | 19 | CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN |
17 | .endif | 20 | .endif |
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 81840a0b29..fd422f02dc 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,8 +1,7 @@ | |||
1 | # $OpenBSD: Makefile,v 1.48 2016/11/05 13:36:33 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.49 2016/11/05 15:01:54 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> # for NOMAN | 3 | .include <bsd.own.mk> |
4 | 4 | ||
5 | .ifndef NOMAN | ||
6 | MAN= \ | 5 | MAN= \ |
7 | ASN1_OBJECT_new.3 \ | 6 | ASN1_OBJECT_new.3 \ |
8 | ASN1_STRING_length.3 \ | 7 | ASN1_STRING_length.3 \ |
@@ -194,13 +193,8 @@ MAN= \ | |||
194 | rsa.3 \ | 193 | rsa.3 \ |
195 | x509.3 | 194 | x509.3 |
196 | 195 | ||
197 | .include <bsd.man.mk> | 196 | all clean cleandir depend includes obj tags: |
198 | .else | ||
199 | maninstall: | ||
200 | |||
201 | .endif | ||
202 | 197 | ||
203 | .include <bsd.obj.mk> | 198 | install: maninstall |
204 | .include <bsd.subdir.mk> | ||
205 | 199 | ||
206 | clean cleandir: | 200 | .include <bsd.man.mk> |
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 74d4bc9488..01d7f04036 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
@@ -1,13 +1,16 @@ | |||
1 | # $OpenBSD: Makefile,v 1.25 2016/11/05 08:12:22 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.26 2016/11/05 15:01:54 schwarze Exp $ |
2 | |||
3 | .include <bsd.own.mk> | ||
4 | .ifndef NOMAN | ||
5 | SUBDIR= doc | ||
6 | .endif | ||
2 | 7 | ||
3 | SUBDIR= man | ||
4 | PC_FILES=openssl.pc libssl.pc | 8 | PC_FILES=openssl.pc libssl.pc |
5 | 9 | ||
6 | CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} | 10 | CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} |
7 | 11 | ||
8 | LIB= ssl | 12 | LIB= ssl |
9 | 13 | ||
10 | .include <bsd.own.mk> | ||
11 | CFLAGS+= -Wall -Wundef | 14 | CFLAGS+= -Wall -Wundef |
12 | .if ${COMPILER_VERSION:L} != "gcc3" | 15 | .if ${COMPILER_VERSION:L} != "gcc3" |
13 | CFLAGS+= -Werror | 16 | CFLAGS+= -Werror |
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/doc/Makefile index e30d3fbb42..dfe4e7b3cb 100644 --- a/src/lib/libssl/man/Makefile +++ b/src/lib/libssl/doc/Makefile | |||
@@ -1,12 +1,8 @@ | |||
1 | # $OpenBSD: Makefile,v 1.34 2016/09/03 12:42:45 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.1 2016/11/05 15:01:54 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> # for NOMAN | 3 | .include <bsd.own.mk> |
4 | 4 | ||
5 | POD2MAN=pod2man --official --release="OpenBSD ${OSREV}" --center=OpenSSL | 5 | MAN = BIO_f_ssl.3 \ |
6 | |||
7 | .ifndef NOMAN | ||
8 | MAN= \ | ||
9 | BIO_f_ssl.3 \ | ||
10 | SSL_CIPHER_get_name.3 \ | 6 | SSL_CIPHER_get_name.3 \ |
11 | SSL_COMP_add_compression_method.3 \ | 7 | SSL_COMP_add_compression_method.3 \ |
12 | SSL_CTX_add_extra_chain_cert.3 \ | 8 | SSL_CTX_add_extra_chain_cert.3 \ |
@@ -88,24 +84,10 @@ MAN= \ | |||
88 | SSL_want.3 \ | 84 | SSL_want.3 \ |
89 | SSL_write.3 \ | 85 | SSL_write.3 \ |
90 | d2i_SSL_SESSION.3 \ | 86 | d2i_SSL_SESSION.3 \ |
91 | ssl.3 \ | 87 | ssl.3 |
92 | |||
93 | .include <bsd.man.mk> | ||
94 | .else | ||
95 | maninstall: | ||
96 | 88 | ||
97 | .endif | 89 | all clean cleandir depend includes obj tags: |
98 | 90 | ||
99 | .PATH: ${.CURDIR}/../doc | 91 | install: maninstall |
100 | .SUFFIXES: .pod .1 .3 .7 | ||
101 | .for sect in 1 3 7 | ||
102 | .pod.${sect}: | ||
103 | @echo '${POD2MAN} --section=${sect} --name=${*:U} $< > $@' | ||
104 | @${POD2MAN} --section=${sect} --name=${*:U} $< > $@.tmp && mv $@.tmp $@ | ||
105 | .endfor | ||
106 | 92 | ||
107 | .include <bsd.obj.mk> | 93 | .include <bsd.man.mk> |
108 | .include <bsd.subdir.mk> | ||
109 | |||
110 | clean cleandir: | ||
111 | rm -f ${MAN} | ||