# $NetBSD: Makefile,v 1.4 2021/02/27 22:37:54 christos Exp $ .include WARNS= 5 PROG= resize SRCS= resize.c CPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral DPADD+= ${LIBUTIL} LDADD+= -lutil .include XTERM=${X11SRCDIR}/external/mit/xterm/dist .if exists(${XTERM}) .for i in resize.c resize.man copy:: ${.CURDIR}/${i} ${.CURDIR}/${i}: ${XTERM}/${i} cp -p ${.ALLSRC} ${.TARGET} .endfor .endif CLEANFILES+=resize.1 resize.1: resize.man @rm -f ${.TARGET} ${TOOL_SED} \ -e "s@__app_date__@1970-01-01@" \ -e "s@__app_version__@NetBSD@" \ -e "s@__default_termname__@vt100@" \ -e "s@__mansuffix__@1@" \ -e "s@__miscmansuffix__@7@" \ < ${.ALLSRC} > ${.TARGET}