xref: /netbsd-src/usr.bin/resize/Makefile (revision 5d8f515b0cd2125c8f851a4eaf3046bda3b461a7)
1#	$NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $
2
3.include <bsd.own.mk>
4
5WARNS=	5
6PROG=	resize
7
8CPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral
9DPADD+=	${LIBUTIL}
10LDADD+= -lutil
11
12.include <bsd.prog.mk>
13
14XTERM=${X11SRCDIR}/external/mit/xterm/dist
15
16# XXX disable for now; breaks on r/o source trees.
17.if make(copy)
18.   if exists(${XTERM})
19.       for i in resize.c resize.man
20copy:: ${.CURDIR}/${i}
21${.CURDIR}/${i}: ${XTERM}/${i}
22	cp -p ${.ALLSRC} ${.TARGET}
23.       endfor
24.   endif
25.endif
26
27CLEANFILES+=resize.1
28
29resize.1: resize.man
30	@rm -f ${.TARGET}
31	${TOOL_SED} \
32	    -e "s@__app_date__@1970-01-01@" \
33	    -e "s@__app_version__@NetBSD@" \
34	    -e "s@__default_termname__@vt100@" \
35	    -e "s@__mansuffix__@1@" \
36	    -e "s@__miscmansuffix__@7@" \
37	    < ${.ALLSRC} > ${.TARGET}
38