mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
As GSL failed in my first attempt to get the example program going, it might be better to try something else before too much time is spend. Fortunately, pyratemp **seems** to be something usable, and even if not, it might be possible to make it usable as it's just a 'simple' python script that I might be able to understand, if need be.
32 lines
671 B
Makefile
32 lines
671 B
Makefile
.PHONY: json-to-xml clean help api-deps
|
|
|
|
include Makefile.helpers
|
|
|
|
PYTHON = python2.7
|
|
TPL = etc/bin/pyratemp.py
|
|
|
|
API_DEPS = .api.deps
|
|
API_SHARED_INFO = ./etc/api/shared.yml
|
|
API_JSON_FILES = $(shell find ./etc -type f -name '*-api.json')
|
|
|
|
help:
|
|
$(info Programs)
|
|
$(info ----> GSL: '$(GSL)')
|
|
$(info ----> templat engine: '$(TPL)')
|
|
$(info )
|
|
$(info Targets)
|
|
$(info help - print this help)
|
|
$(info api-deps - generate a file to tell make what API file dependencies will be)
|
|
|
|
json-to-xml: $(API_XML_FILES)
|
|
$(API_DEPS): $(API_SHARED_INFO)
|
|
$(TPL) -f $(API_SHARED_INFO) -d DEP_FILE=$@
|
|
|
|
api-deps: $(API_DEPS)
|
|
|
|
clean:
|
|
-rm $(API_DEPS)
|
|
-rm $(API_XML_FILES)
|
|
|
|
|