mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(mako-render): multiple input-outputs per call
That way, we read the data files only once, but produce all the outputs we need. Together with a powerful makefile, we have a multi-invocation with proper depedency tracking. Everything will be regenerated though, even though just a single input template file changed. The alternative would be to have one dependency and invocation per input dependency, but that will read the entire json each time. Let's see what's faster/more useful during development.
This commit is contained in:
2
Makefile
2
Makefile
@@ -29,7 +29,7 @@ $(PYTHON):
|
||||
$(MAKO_RENDER): $(PYTHON)
|
||||
|
||||
$(API_DEPS): $(API_SHARED_INFO) $(API_DEPS_TPL) $(MAKO_RENDER)
|
||||
$(TPL) --data-files $(API_SHARED_INFO) --var SHARED_INFO_FILE=$(API_SHARED_INFO) $(API_DEPS_TPL) > $@
|
||||
$(TPL) -io $(API_DEPS_TPL) --data-files $(API_SHARED_INFO) > $@
|
||||
|
||||
api-deps: $(API_DEPS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user