Files
google-apis-rs/etc/Makefile
Sebastian Thiel 1980f76c32 feat(make): makefile for handling json-to-xml
That way, it will remain clearly documented how to do this, and allow
for efficient calling of gsl as well, at some point.

Of course it will be a little more difficult for us to know all
dependencies, but gsl could generate these as well for us, I suppose.
2015-03-01 09:24:16 +01:00

20 lines
396 B
Makefile

.PHONY: json-to-xml clean
CONVERT = ./json2xml.py
API_JSON_FILES = $(shell find . -type f -name '*-api.json')
API_XML_FILES = $(patsubst %.json,%.xml,$(API_JSON_FILES))
help:
$(info Valid targets are:)
$(info json-to-xml - convert json API files to xml for consumption by GSL)
json-to-xml: $(API_XML_FILES)
%.xml: %.json
$(CONVERT) --pretty -o $@ < $<
clean:
-rm $(API_XML_FILES)