Module Name: src
Committed By: christos
Date: Sat Feb 27 22:37:54 UTC 2021
Modified Files:
src/usr.bin/resize: Makefile
Log Message:
Don't define the copy rules if we don't have X sources
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/resize/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/resize/Makefile
diff -u src/usr.bin/resize/Makefile:1.3 src/usr.bin/resize/Makefile:1.4
--- src/usr.bin/resize/Makefile:1.3 Sat Feb 27 11:08:08 2021
+++ src/usr.bin/resize/Makefile Sat Feb 27 17:37:54 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/02/27 16:08:08 christos Exp $
+# $NetBSD: Makefile,v 1.4 2021/02/27 22:37:54 christos Exp $
.include <bsd.own.mk>
@@ -14,11 +14,13 @@ LDADD+= -lutil
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