1# $FreeBSD: head/share/mk/bsd.man.mk 301284 2016-06-03 19:25:36Z bdrewery $ |
2# 3# The include file <bsd.man.mk> handles installing manual pages and 4# their links. 5# 6# 7# +++ variables +++ 8# 9# DESTDIR Change the tree where the man pages gets installed. [not set] --- 84 unchanged lines hidden (view full) --- 94.for __target in ${__page:T:S/$/${FILTEXTENSION}/g} 95all-man: ${__target} 96${__target}: ${__page} 97 ${MANFILTER} < ${.ALLSRC} > ${.TARGET} 98.endfor 99.if defined(MANBUILDCAT) && !empty(MANBUILDCAT) 100.for __target in ${__page:T:S/$/${CATEXT}${FILTEXTENSION}/g} 101all-man: ${__target} |
102${__target}: ${__page} |
103 ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} > ${.TARGET} 104.endfor 105.endif 106.endfor 107.endif # !empty(MAN) 108.else # !defined(MANFILTER) 109.if defined(MAN) && !empty(MAN) 110CLEANFILES+= ${MAN:T:S/$/${CATEXT}/g} 111.if defined(MANBUILDCAT) && !empty(MANBUILDCAT) 112.for __page in ${MAN} 113.for __target in ${__page:T:S/$/${CATEXT}/g} 114all-man: ${__target} |
115${__target}: ${__page} |
116 ${MANDOC_CMD} ${.ALLSRC} > ${.TARGET} 117.endfor 118.endfor 119.else 120all-man: ${MAN} 121.endif 122.endif 123.endif # defined(MANFILTER) --- 19 unchanged lines hidden (view full) --- 143.endif 144.endif 145 146CLEANFILES+= ${MAN:T:S/$/${MCOMPRESS_EXT}/g} 147CLEANFILES+= ${MAN:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g} 148.for __page in ${MAN} 149.for __target in ${__page:T:S/$/${MCOMPRESS_EXT}/} 150all-man: ${__target} |
151${__target}: ${__page} |
152.if defined(MANFILTER) 153 ${MANFILTER} < ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET} 154.else 155 ${MCOMPRESS_CMD} ${.ALLSRC} > ${.TARGET} 156.endif 157.endfor 158.if defined(MANBUILDCAT) && !empty(MANBUILDCAT) 159.for __target in ${__page:T:S/$/${CATEXT}${MCOMPRESS_EXT}/} 160all-man: ${__target} |
161${__target}: ${__page} |
162.if defined(MANFILTER) 163 ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} | ${MCOMPRESS_CMD} > ${.TARGET} 164.else 165 ${MANDOC_CMD} ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET} 166.endif 167.endfor 168.endif 169.endfor --- 75 unchanged lines hidden --- |