]> Nutra Git (v2) - nutratech/usda-sqlite.git/commitdiff
add check-vars
authorShane Jaroch <chown_tee@proton.me>
Tue, 16 Apr 2024 02:45:12 +0000 (22:45 -0400)
committerShane Jaroch <chown_tee@proton.me>
Tue, 16 Apr 2024 02:45:12 +0000 (22:45 -0400)
Makefile

index d9afdff54d02c9766571f37d5234e711e10ecb57..62b58db3b30ce59ee01b57234ce0f1906f038ac9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,6 +96,14 @@ clean:       ## Clean up leftover bits and stuff from build
        rm -f sql/*.sqlite
        rm -f sql/*.sqlite3
 
+.PHONY: check-vars
+check-vars:    ## display all computed vars (won't show passed in)
+       $(info --vars--)
+       $(foreach v, \
+       $(filter-out $(FILTERED_VARS) FILTERED_VARS,$(.VARIABLES)), \
+       $(info $(v) = $($(v))))
+       @printf ''
+
 .PHONY: extras/cloc
 extras/cloc:
        cloc HEAD --exclude-dir=usda.svg