Improve the process for GNU tools
[minix3.git] / external / bsd / libevent / man / Makefile
blobdd6e519e4931935e78d82fc94a033d2a398e82a6
1 # $NetBSD: Makefile,v 1.5 2014/04/19 08:03:21 wiz Exp $
3 # Try to undo the doxygen lossage in the man pages.
5 HSRCS1= \
6 buffer.h.3 \
7 buffer_compat.h.3 \
8 dns.h.3 \
9 dns_compat.h.3 \
10 http.h.3 \
11 http_compat.h.3 \
12 rpc.h.3 \
13 rpc_compat.h.3 \
14 tag.h.3 \
15 tag_compat.h.3 \
16 thread.h.3 \
17 util.h.3
19 HMAN1=${HSRCS1:S/^/ev/g:S/.h.3/.3/g}
21 .for i in ${HSRCS1}
22 ev${i:S/.h.3/.3/g}: $i
23 ${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
24 .endfor
26 HSRCS2= \
27 bufferevent_ssl.h.3 \
28 event.h.3 \
29 event_compat.h.3
31 .for i in ${HSRCS2}
32 ${i:S/.h.3/.3/g}: $i
33 ${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
34 .endfor
36 HMAN2=${HSRCS2:S/.h.3/.3/g}
38 SRCS1=deprecated.3
39 MAN1=${SRCS1:S/^/ev/g}
41 .for i in ${SRCS1}
42 ev$i: $i
43 ${TOOL_SED} -e 's/"deprecated"/"evdeprecated"/g' \
44 -e 's/^deprecated/^evdeprecated/g' < ${.ALLSRC} > ${.TARGET}
45 .endfor
47 MAN+= \
48 bufferevent.3 \
49 evbuffer_cb_info.3 \
50 evbuffer_iovec.3 \
51 evbuffer_ptr.3 \
52 event_base.3 \
53 event_config.3 \
54 evthread_condition_callbacks.3 \
55 evthread_lock_callbacks.3 \
56 evutil_addrinfo.3
58 MAN+= ${HMAN1} ${HMAN2} ${MAN1}
60 CLEANFILES+=${HMAN1} ${HMAN2} ${MAN1}
62 USETBL= yes
64 .include <bsd.man.mk>