1 # $NetBSD: Makefile,v 1.6 2016/05/01 20:25:37 joerg Exp $ 2 3 # Try to undo the doxygen lossage in the man pages. 4 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 18 19 HMAN1=${HSRCS1:S/^/ev/g:S/.h.3/.3/g} 20 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 25 26 HSRCS2= \ 27 bufferevent_ssl.h.3 \ 28 event.h.3 \ 29 event_compat.h.3 30 31 .for i in ${HSRCS2} 32 ${i:S/.h.3/.3/g}: $i 33 ${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET} 34 .endfor 35 36 HMAN2=${HSRCS2:S/.h.3/.3/g} 37 38 SRCS1=deprecated.3 39 MAN1=${SRCS1:S/^/ev/g} 40 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 46 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 57 58 MAN+= ${HMAN1} ${HMAN2} ${MAN1} 59 60 CLEANFILES+=${HMAN1} ${HMAN2} ${MAN1} 61 62 USETBL= yes 63 64 .include <bsd.man.mk> 65