Module Name:    src
Committed By:   christos
Date:           Tue Mar  2 14:26:00 UTC 2021

Modified Files:
        src/usr.bin/resize: Makefile

Log Message:
Only specify the dependencies if we are making the copy target.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/usr.bin/resize/Makefile:1.7
--- src/usr.bin/resize/Makefile:1.6	Sun Feb 28 04:04:28 2021
+++ src/usr.bin/resize/Makefile	Tue Mar  2 09:26:00 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2021/02/28 09:04:28 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2021/03/02 14:26:00 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -14,14 +14,14 @@ LDADD+= -lutil
 XTERM=${X11SRCDIR}/external/mit/xterm/dist
 
 # XXX disable for now; breaks on r/o source trees.
-.if 0
-.if exists(${XTERM})
-.for i in resize.c resize.man
+.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
+.       endfor
+.   endif
 .endif
 
 CLEANFILES+=resize.1

Reply via email to