summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-08-05 11:10:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-08-05 11:10:12 +0000
commit24f7e7347e4cc538b463d025afc2518fb9b98c55 (patch)
treea82dae268fcdb1ad8336f07beacfd6b78c51cb6a
parent152b1a52c771d5c32e300c3b940b40175873ec85 (diff)
check curly targets work. No need to look at the output. If curly targets don't
expand correctly, the Makefile will fail. If it works, then it's okay.
-rw-r--r--regress/usr.bin/make/Makefile7
-rw-r--r--regress/usr.bin/make/mk259
2 files changed, 14 insertions, 2 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index 72168520ac5..fe0beab46c4 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.24 2006/09/17 19:02:13 espie Exp $
+# $OpenBSD: Makefile,v 1.25 2007/08/05 11:10:11 espie Exp $
# We don't pass t7, t13, t14, t17, t19, t20 t21 t26
# and t16 yields piss poor performance
-REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27
+REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28
MALLOC_OPTIONS?=AZJ
t1: t1.out
@@ -115,6 +115,9 @@ t27:
rm -f ${.OBJDIR}/t27.3rd
if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk24 t27.3rd 2>/dev/null; then false; fi
+t28:
+ cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk25 all >/dev/null
+
z.a:
touch $@
diff --git a/regress/usr.bin/make/mk25 b/regress/usr.bin/make/mk25
new file mode 100644
index 00000000000..e520e49c721
--- /dev/null
+++ b/regress/usr.bin/make/mk25
@@ -0,0 +1,9 @@
+# $OpenBSD: mk25,v 1.1 2007/08/05 11:10:11 espie Exp $
+# verify that curly targets work correctly
+
+.PHONY: a b c d all
+
+all: a b c d
+
+{a,b,c,d}:
+ @echo "Building $@"