Home | History | Annotate | Line # | Download | only in resize
      1  1.7  christos #	$NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 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.6       mrg # XXX disable for now; breaks on r/o source trees.
     17  1.7  christos .if make(copy)
     18  1.7  christos .   if exists(${XTERM})
     19  1.7  christos .       for i in resize.c resize.man
     20  1.2  christos copy:: ${.CURDIR}/${i}
     21  1.2  christos ${.CURDIR}/${i}: ${XTERM}/${i}
     22  1.2  christos 	cp -p ${.ALLSRC} ${.TARGET}
     23  1.7  christos .       endfor
     24  1.7  christos .   endif
     25  1.6       mrg .endif
     26  1.2  christos 
     27  1.2  christos CLEANFILES+=resize.1
     28  1.2  christos 
     29  1.2  christos resize.1: resize.man
     30  1.2  christos 	@rm -f ${.TARGET}
     31  1.2  christos 	${TOOL_SED} \
     32  1.2  christos 	    -e "s@__app_date__@1970-01-01@" \
     33  1.2  christos 	    -e "s@__app_version__@NetBSD@" \
     34  1.2  christos 	    -e "s@__default_termname__@vt100@" \
     35  1.2  christos 	    -e "s@__mansuffix__@1@" \
     36  1.2  christos 	    -e "s@__miscmansuffix__@7@" \
     37  1.2  christos 	    < ${.ALLSRC} > ${.TARGET}
     38