summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Gruetzmacher <tobias-git@23.gs>2015-02-26 14:42:26 (GMT)
committerTobias Gruetzmacher <tobias-git@23.gs>2015-02-27 11:57:52 (GMT)
commit06747eaca2f34ae0717566d9267ffd1229444210 (patch)
tree5c82761a354fce86e0e493befa6ebe274c620761 /Makefile
parentd4265c20416f35c2a28b54a34eab9872cbf0caaf (diff)
downloadmxe-06747eaca2f34ae0717566d9267ffd1229444210.zip
mxe-06747eaca2f34ae0717566d9267ffd1229444210.tar.gz
mxe-06747eaca2f34ae0717566d9267ffd1229444210.tar.bz2
Add a new makefile target to cache versions.
All package versions are written int one JSON file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 64f3098..82fee8a 100644
--- a/Makefile
+++ b/Makefile
@@ -507,7 +507,7 @@ show-upstream-deps-%:
.PHONY: clean
clean:
- rm -rf $(call TMP_DIR,*) $(PREFIX) build-matrix.html
+ rm -rf $(call TMP_DIR,*) $(PREFIX) build-matrix.html versions.json
.PHONY: clean-pkg
clean-pkg:
@@ -663,3 +663,12 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
@echo '</table>' >> $@
@echo '</body>' >> $@
@echo '</html>' >> $@
+
+
+versions.json: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
+ @echo '{' > $@
+ @{$(foreach PKG,$(PKGS), \
+ echo ' "$(PKG)": \
+ "$($(PKG)_VERSION)",';)} >> $@
+ @echo ' "": null' >> $@
+ @echo '}' >> $@