chiark / gitweb /
tests: Test &TARGETS feature
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Dec 2019 17:14:40 +0000 (17:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 16:04:44 +0000 (16:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/Subdir.mk.expected
tests/filter/sub/Subdir.mk.expected
tests/filter/sub/dir/Subdir.mk.expected
tests/filter/sub/dir/Subdir.sd.mk

index c0bc70f..4f771c2 100644 (file)
@@ -3,4 +3,6 @@
 # doctests:
 
 all:: $(TOP_TARGETS) sub/all
-.PHONY: all
+sometarget1:: $(TOP_TARGETS_sometarget1) sub/sometarget1
+sometarget2:: $(TOP_TARGETS_sometarget2) sub/sometarget2
+.PHONY: all sometarget1 sometarget2
index f57787b..0cd6e3f 100644 (file)
@@ -1,4 +1,6 @@
 # autogenerated - do not edit
 
 sub/all:: $(sub_TARGETS) sub/dir/all
-.PHONY: sub/all
+sub/sometarget1:: $(sub_TARGETS_sometarget1) sub/dir/sometarget1
+sub/sometarget2:: $(sub_TARGETS_sometarget2) sub/dir/sometarget2
+.PHONY: sub/all sub/sometarget1 sub/sometarget2
index 8a3e94f..a524ea2 100644 (file)
@@ -3,7 +3,13 @@
 
 sub/dir/
 
+# sub_dir_TARGETS_notarget += 42
+sub_dir_TARGETS_sometarget1
+sub_dir_TARGETS_sometarget2
+
 # doctests:
 
 sub/dir/all:: $(sub_dir_TARGETS)
-.PHONY: sub/dir/all
+sub/dir/sometarget1:: $(sub_dir_TARGETS_sometarget1)
+sub/dir/sometarget2:: $(sub_dir_TARGETS_sometarget2)
+.PHONY: sub/dir/all sub/dir/sometarget1 sub/dir/sometarget2
index 99f6f4e..f2bfa20 100644 (file)
@@ -3,5 +3,9 @@
 &:changequote &
 &/
 
+# &TARGETS_notarget += 42
+&TARGETS_sometarget1
+&TARGETS_sometarget2
+
 # doctests:
 &:include &doctest.sd.mk