Module Name: src
Committed By: rillig
Date: Wed Apr 21 13:26:16 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: Makefile
Log Message:
tests/lint: fix the hack for emit.ln to also work if MKUPDATE != "no"
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/tests/usr.bin/xlint/lint1/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.48 src/tests/usr.bin/xlint/lint1/Makefile:1.49
--- src/tests/usr.bin/xlint/lint1/Makefile:1.48 Tue Apr 20 23:30:35 2021
+++ src/tests/usr.bin/xlint/lint1/Makefile Wed Apr 21 13:26:16 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2021/04/20 23:30:35 rillig Exp $
+# $NetBSD: Makefile,v 1.49 2021/04/21 13:26:16 rillig Exp $
NOMAN= # defined
MAX_MESSAGE= 343 # see lint1/err.c
@@ -117,7 +117,11 @@ FILES+= op_colon.exp
# depend in ${DESTDIR}/emit.c, but these files are not intended to depend on
# each other, they have these suffixes just for convenience and convention.
.if make(install)
+. if ${MKUPDATE} == "no" # see bsd.files.mk
${DESTDIR}${FILESDIR}/emit.ln! .PHONY
+. else
+${DESTDIR}${FILESDIR}/emit.ln: .PHONY
+. endif
.endif
# ----- end hack -----