11.7Schristos# $NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $ 21.2Schristos 31.2Schristos.include <bsd.own.mk> 41.1Sreinoud 51.3SchristosWARNS= 5 61.1SreinoudPROG= resize 71.2Schristos 81.3SchristosCPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral 91.2SchristosDPADD+= ${LIBUTIL} 101.2SchristosLDADD+= -lutil 111.1Sreinoud 121.1Sreinoud.include <bsd.prog.mk> 131.2Schristos 141.2SchristosXTERM=${X11SRCDIR}/external/mit/xterm/dist 151.2Schristos 161.6Smrg# XXX disable for now; breaks on r/o source trees. 171.7Schristos.if make(copy) 181.7Schristos. if exists(${XTERM}) 191.7Schristos. for i in resize.c resize.man 201.2Schristoscopy:: ${.CURDIR}/${i} 211.2Schristos${.CURDIR}/${i}: ${XTERM}/${i} 221.2Schristos cp -p ${.ALLSRC} ${.TARGET} 231.7Schristos. endfor 241.7Schristos. endif 251.6Smrg.endif 261.2Schristos 271.2SchristosCLEANFILES+=resize.1 281.2Schristos 291.2Schristosresize.1: resize.man 301.2Schristos @rm -f ${.TARGET} 311.2Schristos ${TOOL_SED} \ 321.2Schristos -e "s@__app_date__@1970-01-01@" \ 331.2Schristos -e "s@__app_version__@NetBSD@" \ 341.2Schristos -e "s@__default_termname__@vt100@" \ 351.2Schristos -e "s@__mansuffix__@1@" \ 361.2Schristos -e "s@__miscmansuffix__@7@" \ 371.2Schristos < ${.ALLSRC} > ${.TARGET} 38