Add Makefile debugging trick so that we can inspect runtime Makefile variables
authorElliot Saba <staticfloat@gmail.com>
Thu, 4 May 2017 18:51:29 +0000 (11:51 -0700)
committerElliot Saba <staticfloat@gmail.com>
Thu, 4 May 2017 18:51:29 +0000 (11:51 -0700)
Makefile

index 6883e51..27923aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -329,3 +329,8 @@ endif
        @rm -f *.grd Makefile.conf_last config_last.h
        @(cd $(NETLIB_LAPACK_DIR)/TESTING && rm -f x* *.out testing_results.txt)
        @echo Done.
+
+# Makefile debugging trick:
+# call print-VARIABLE to see the runtime value of any variable
+print-%:
+       @echo '$*=$($*)'