diff options
author | Tobias Gruetzmacher <tobias-git@23.gs> | 2015-02-26 14:42:26 (GMT) |
---|---|---|
committer | Tobias Gruetzmacher <tobias-git@23.gs> | 2015-02-27 11:57:52 (GMT) |
commit | 06747eaca2f34ae0717566d9267ffd1229444210 (patch) | |
tree | 5c82761a354fce86e0e493befa6ebe274c620761 /Makefile | |
parent | d4265c20416f35c2a28b54a34eab9872cbf0caaf (diff) | |
download | mxe-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-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 '}' >> $@ |