1# $NetBSD: Makefile,v 1.5 2014/04/19 08:03:21 wiz Exp $ 2 3# Try to undo the doxygen lossage in the man pages. 4 5HSRCS1= \ 6buffer.h.3 \ 7buffer_compat.h.3 \ 8dns.h.3 \ 9dns_compat.h.3 \ 10http.h.3 \ 11http_compat.h.3 \ 12rpc.h.3 \ 13rpc_compat.h.3 \ 14tag.h.3 \ 15tag_compat.h.3 \ 16thread.h.3 \ 17util.h.3 18 19HMAN1=${HSRCS1:S/^/ev/g:S/.h.3/.3/g} 20 21.for i in ${HSRCS1} 22ev${i:S/.h.3/.3/g}: $i 23 ${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET} 24.endfor 25 26HSRCS2= \ 27bufferevent_ssl.h.3 \ 28event.h.3 \ 29event_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 36HMAN2=${HSRCS2:S/.h.3/.3/g} 37 38SRCS1=deprecated.3 39MAN1=${SRCS1:S/^/ev/g} 40 41.for i in ${SRCS1} 42ev$i: $i 43 ${TOOL_SED} -e 's/"deprecated"/"evdeprecated"/g' \ 44 -e 's/^deprecated/^evdeprecated/g' < ${.ALLSRC} > ${.TARGET} 45.endfor 46 47MAN+= \ 48bufferevent.3 \ 49evbuffer_cb_info.3 \ 50evbuffer_iovec.3 \ 51evbuffer_ptr.3 \ 52event_base.3 \ 53event_config.3 \ 54evthread_condition_callbacks.3 \ 55evthread_lock_callbacks.3 \ 56evutil_addrinfo.3 57 58MAN+= ${HMAN1} ${HMAN2} ${MAN1} 59 60CLEANFILES+=${HMAN1} ${HMAN2} ${MAN1} 61 62USETBL= yes 63 64.include <bsd.man.mk> 65