1*5d8f515bSchristos# $NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $ 266a2df67Schristos 366a2df67Schristos.include <bsd.own.mk> 4ef6e52b4Sreinoud 5ec2d1eb5SchristosWARNS= 5 6ef6e52b4SreinoudPROG= resize 766a2df67Schristos 8ec2d1eb5SchristosCPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral 966a2df67SchristosDPADD+= ${LIBUTIL} 1066a2df67SchristosLDADD+= -lutil 11ef6e52b4Sreinoud 12ef6e52b4Sreinoud.include <bsd.prog.mk> 1366a2df67Schristos 1466a2df67SchristosXTERM=${X11SRCDIR}/external/mit/xterm/dist 1566a2df67Schristos 16f4968f58Smrg# XXX disable for now; breaks on r/o source trees. 17*5d8f515bSchristos.if make(copy) 187c9ac6ddSchristos. if exists(${XTERM}) 1966a2df67Schristos. for i in resize.c resize.man 2066a2df67Schristoscopy:: ${.CURDIR}/${i} 2166a2df67Schristos${.CURDIR}/${i}: ${XTERM}/${i} 2266a2df67Schristos cp -p ${.ALLSRC} ${.TARGET} 2366a2df67Schristos. endfor 247c9ac6ddSchristos. endif 25f4968f58Smrg.endif 2666a2df67Schristos 2766a2df67SchristosCLEANFILES+=resize.1 2866a2df67Schristos 2966a2df67Schristosresize.1: resize.man 3066a2df67Schristos @rm -f ${.TARGET} 3166a2df67Schristos ${TOOL_SED} \ 3266a2df67Schristos -e "s@__app_date__@1970-01-01@" \ 3366a2df67Schristos -e "s@__app_version__@NetBSD@" \ 3466a2df67Schristos -e "s@__default_termname__@vt100@" \ 3566a2df67Schristos -e "s@__mansuffix__@1@" \ 3666a2df67Schristos -e "s@__miscmansuffix__@7@" \ 3766a2df67Schristos < ${.ALLSRC} > ${.TARGET} 38