summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-11 23:33:44 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-11 23:33:44 -0700
commit7eda822ef31a15d22de03fc1eec7d995f661b26d (patch)
tree0f00fdf307cfa78337c50a43e2ff842942922af5 /GNUmakefile
parent8573ec62fe175edc73c6c54d24e520ee6aba3f96 (diff)
parentd29cb3f3deda2ae55fbccfdaae3b2481410a0894 (diff)
Merge branch 'lukeshu/9p-tests'
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 86008a0..ab28ede 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -60,7 +60,7 @@ generate-clean:
# `build` and `check` ##########################################################
-platforms := $(shell sed -nE 's/if *\(PICO_PLATFORM STREQUAL "(.*)"\)/\1/p' cmd/*/CMakeLists.txt)
+platforms := rp2040 host # $(shell sed -nE 's/if *\(PICO_PLATFORM STREQUAL "(.*)"\)/\1/p' cmd/*/CMakeLists.txt)
build_types = Debug Release RelWithDebInfo MinSizeRel
build: $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/build))
@@ -74,12 +74,12 @@ $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/build)): build/%
.PHONY: $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/build))
check: build
- $(MAKE) -j1 -k $(foreach t,$(build-types),$(foreach p,$(platforms),build/$p-$t/check))
+ $(MAKE) -j1 -k $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/check))
.PHONY: check
-$(foreach t,$(build-types),$(foreach p,$(platforms),build/$p-$t/check)): build/%/check: build/%/Makefile
+$(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/check)): build/%/check: build/%/Makefile
CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C $(<D) test
-.PHONY: $(foreach t,$(build-types),$(foreach p,$(platforms),build/$p-$t/check))
+.PHONY: $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/check))
# `lint` and `format` ##########################################################
@@ -120,7 +120,7 @@ lint/unknown: lint/%:
@printf "%s: cannot lint unknown file type\n" $(sources_$*) >&2
lint/all: lint/%:
$(eval export sources_$*)
- @find $$(printf '%s\n' $${sources_$*} | grep -vE '^cmd/[^/]+/static/') \
+ @find $$(printf '%s\n' $${sources_$*} | grep -vE '^lib9p/tests/[^/]+/static/') \
-maxdepth 0 -type f | \
{ r=0; while read -r filename; do \
if ! grep -E -q 'Copyright \(C\) 202[4-9]((-|, )202[5-9])* Luke T. Shumaker' $$filename; then \