blob: 368c58c92e5f703af4fc35853a910157fcb9cdd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $
.include <bsd.own.mk>
WARNS= 5
PROG= resize
CPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.include <bsd.prog.mk>
XTERM=${X11SRCDIR}/external/mit/xterm/dist
# XXX disable for now; breaks on r/o source trees.
.if make(copy)
. if exists(${XTERM})
. for i in resize.c resize.man
copy:: ${.CURDIR}/${i}
${.CURDIR}/${i}: ${XTERM}/${i}
cp -p ${.ALLSRC} ${.TARGET}
. endfor
. endif
.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}
|