2021-03-02 17:26:00 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $
|
2021-02-27 18:36:39 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2020-12-28 00:13:17 +03:00
|
|
|
|
2021-02-27 19:08:08 +03:00
|
|
|
WARNS= 5
|
2020-12-28 00:13:17 +03:00
|
|
|
PROG= resize
|
2021-02-27 18:36:39 +03:00
|
|
|
|
2021-02-27 19:08:08 +03:00
|
|
|
CPPFLAGS+=-DRESIZE_ONLY -Wno-format-nonliteral
|
2021-02-27 18:36:39 +03:00
|
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
LDADD+= -lutil
|
2020-12-28 00:13:17 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
2021-02-27 18:36:39 +03:00
|
|
|
|
|
|
|
XTERM=${X11SRCDIR}/external/mit/xterm/dist
|
|
|
|
|
2021-02-28 12:04:28 +03:00
|
|
|
# XXX disable for now; breaks on r/o source trees.
|
2021-03-02 17:26:00 +03:00
|
|
|
.if make(copy)
|
|
|
|
. if exists(${XTERM})
|
|
|
|
. for i in resize.c resize.man
|
2021-02-27 18:36:39 +03:00
|
|
|
copy:: ${.CURDIR}/${i}
|
|
|
|
${.CURDIR}/${i}: ${XTERM}/${i}
|
|
|
|
cp -p ${.ALLSRC} ${.TARGET}
|
2021-03-02 17:26:00 +03:00
|
|
|
. endfor
|
|
|
|
. endif
|
2021-02-28 12:04:28 +03:00
|
|
|
.endif
|
2021-02-27 18:36:39 +03:00
|
|
|
|
|
|
|
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}
|