summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-03-15 10:05:57 -0700
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-03-15 10:18:34 -0700
commit5dd316a7fff887877c229be395db74dd62634586 (patch)
tree1b3b9c2adcbc09c8b0a134d4ae2c01803c778087 /Makefile
parent23070ea89d17af8b4675ba1854910b604e89d9c5 (diff)
Mark list-* as PHONY
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4003189..7eb7229 100644
--- a/Makefile
+++ b/Makefile
@@ -113,6 +113,7 @@ MATCHING_SETTINGS = $(shell scripts/filter-targets $(TARGET_ROOT)/bsp $(TARGET_R
# Get the name of the containing directory of all matching settings.mk
MATCHING_TARGETS = $(patsubst $(TARGET_ROOT)/bsp/%/,%,$(dir $(MATCHING_SETTINGS)))
+.PHONY: list-targets
list-targets:
@echo bsp-list: $(sort $(MATCHING_TARGETS))
@@ -125,6 +126,7 @@ list-targets:
# 5. Sort the lines
# 6. Find unique tags
#
+.PHONY: list-target-tags
list-target-tags:
@echo target-tags: $(shell find $(TARGET_ROOT)/bsp -name settings.mk | \
xargs grep -he "TARGET_TAGS" | \
@@ -134,9 +136,11 @@ list-target-tags:
uniq)
# Metal programs are any submodules in the software folder
+.PHONY: list-programs
list-programs:
@echo program-list: $(shell grep -o '= software/.*$$' .gitmodules | sed 's/.*\///')
+.PHONY: list-options
list-options: list-programs list-targets
#############################################################