Add "echo-yosys-ver" and "echo-git-rev" Makefile targets.
authorMartin Schmölzer <mschmoelzer@gmail.com>
Sun, 18 Jan 2015 15:09:42 +0000 (16:09 +0100)
committerMartin Schmölzer <mschmoelzer@gmail.com>
Sun, 18 Jan 2015 15:20:57 +0000 (16:20 +0100)
These Makefile targets simply echo the corresponding Makefile variable,
simplifying package build scripts.

Signed-off-by: Martin Schmölzer <mschmoelzer@gmail.com>
Makefile

index a1e2cb76b14ed3b0be4258c3512079f16fd779ec..278ad881132e9ce18c9dedc69719bcf1c105a8ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -385,6 +385,12 @@ config-gprof: clean
 config-sudo:
        echo "INSTALL_SUDO := sudo" >> Makefile.conf
 
+echo-yosys-ver:
+       @echo "$(YOSYS_VER)"
+
+echo-git-rev:
+       @echo "$(GIT_REV)"
+
 -include libs/*/*.d
 -include frontends/*/*.d
 -include passes/*/*.d