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