1 1.5 christos # $NetBSD: Makefile,v 1.5 2021/02/28 00:43:24 christos Exp $ 2 1.2 christos 3 1.2 christos .include <bsd.own.mk> 4 1.1 reinoud 5 1.3 christos WARNS= 5 6 1.1 reinoud PROG= resize 7 1.2 christos 8 1.3 christos CPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral 9 1.2 christos DPADD+= ${LIBUTIL} 10 1.2 christos LDADD+= -lutil 11 1.1 reinoud 12 1.1 reinoud .include <bsd.prog.mk> 13 1.2 christos 14 1.2 christos XTERM=${X11SRCDIR}/external/mit/xterm/dist 15 1.2 christos 16 1.4 christos .if exists(${XTERM}) 17 1.2 christos .for i in resize.c resize.man 18 1.2 christos copy:: ${.CURDIR}/${i} 19 1.2 christos ${.CURDIR}/${i}: ${XTERM}/${i} 20 1.2 christos cp -p ${.ALLSRC} ${.TARGET} 21 1.2 christos .endfor 22 1.4 christos .endif 23 1.2 christos 24 1.2 christos CLEANFILES+=resize.1 25 1.2 christos 26 1.2 christos resize.1: resize.man 27 1.2 christos @rm -f ${.TARGET} 28 1.2 christos ${TOOL_SED} \ 29 1.2 christos -e "s@__app_date__@1970-01-01@" \ 30 1.2 christos -e "s@__app_version__@NetBSD@" \ 31 1.2 christos -e "s@__default_termname__@vt100@" \ 32 1.2 christos -e "s@__mansuffix__@1@" \ 33 1.2 christos -e "s@__miscmansuffix__@7@" \ 34 1.2 christos < ${.ALLSRC} > ${.TARGET} 35