mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-22 11:11:25 +01:00
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.
20 lines
396 B
Makefile
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)
|
|
|