-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mako): api deps generation works
It's very pleasant to use, and worth the slightly greater effort.
- Loading branch information
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"folder_exclude_patterns" : [ | ||
"target", | ||
".git", | ||
".pyenv" | ||
], | ||
}, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<%api_info=[]%> | ||
% for a in api.list: | ||
<% | ||
gen_root = directories.output + '/' + a.name + '_' + a.version | ||
api_name = a.name + a.version | ||
api_clean = api_name + '-clean' | ||
api_info.append((api_name, api_clean, gen_root)) | ||
%> | ||
${gen_root}: ${directories.api_base}/${a.name}/${a.version}/${a.name}-api.json ${SHARED_INFO_FILE} | ||
${api_name}: ${gen_root} | ||
@echo TODO ${api_name} command | ||
${api_clean}: | ||
-rm -Rf ${gen_root} | ||
% endfor | ||
.PHONY += $(.PHONY) ${' '.join(a[0] for a in api_info)} ${' '.join(a[1] for a in api_info)} | ||
help-api: | ||
% for a in api_info: | ||
$(info ${a[0]} - build the ${a[0]} api) | ||
$(info ${a[1]} - clean all generated files of the ${a[0]} api) | ||
% endfor | ||
clean-api: ${' '.join(a[1] for a in api_info)} |