summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-11-05 15:01:54 +0000
committerschwarze <>2016-11-05 15:01:54 +0000
commit295aa404cc84d16f9fe523312a77bab3379562a4 (patch)
treef45911a7a9e85b11967385fdaab11aa744044248
parentadb72aa0e0ceb7ed3651bd3410f1509d77ad825e (diff)
downloadopenbsd-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/Makefile7
-rw-r--r--src/lib/libcrypto/man/Makefile16
-rw-r--r--src/lib/libssl/Makefile9
-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
3LIB= crypto 3LIB= crypto
4 4
5.include <bsd.own.mk>
6.ifndef NOMAN
5SUBDIR= man 7SUBDIR= man
8.endif
9
6PC_FILES=libcrypto.pc 10PC_FILES=libcrypto.pc
7 11
8CLEANFILES=${PC_FILES} 12CLEANFILES=${PC_FILES}
@@ -11,7 +15,6 @@ LCRYPTO_SRC= ${.CURDIR}
11 15
12CFLAGS+= -Wall -Wundef -Werror 16CFLAGS+= -Wall -Wundef -Werror
13 17
14.include <bsd.own.mk> # for 'NOPIC' definition
15.if !defined(NOPIC) 18.if !defined(NOPIC)
16CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN 19CFLAGS+= -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
6MAN= \ 5MAN= \
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> 196all clean cleandir depend includes obj tags:
198.else
199maninstall:
200
201.endif
202 197
203.include <bsd.obj.mk> 198install: maninstall
204.include <bsd.subdir.mk>
205 199
206clean 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
5SUBDIR= doc
6.endif
2 7
3SUBDIR= man
4PC_FILES=openssl.pc libssl.pc 8PC_FILES=openssl.pc libssl.pc
5 9
6CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} 10CLEANFILES=${PC_FILES} ${VERSION_SCRIPT}
7 11
8LIB= ssl 12LIB= ssl
9 13
10.include <bsd.own.mk>
11CFLAGS+= -Wall -Wundef 14CFLAGS+= -Wall -Wundef
12.if ${COMPILER_VERSION:L} != "gcc3" 15.if ${COMPILER_VERSION:L} != "gcc3"
13CFLAGS+= -Werror 16CFLAGS+= -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
5POD2MAN=pod2man --official --release="OpenBSD ${OSREV}" --center=OpenSSL 5MAN = BIO_f_ssl.3 \
6
7.ifndef NOMAN
8MAN= \
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
95maninstall:
96 88
97.endif 89all clean cleandir depend includes obj tags:
98 90
99.PATH: ${.CURDIR}/../doc 91install: 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
110clean cleandir:
111 rm -f ${MAN}