mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
fix(mako-deps): handle whitespace and add GENINFO
Also, remove obsolete pyra files
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
<%api_info=[]%>
|
||||
# DO NOT EDIT !
|
||||
# This file was generated automatically by '${self.uri}'
|
||||
# DO NOT EDIT !
|
||||
|
||||
<%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
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
$!setvar("api_info", "[]")!$#!
|
||||
|
||||
<!--(for a in api.list)-->
|
||||
$!setvar("gen_root", "directories.output + '/' + a.name + '_' + a.version")!$#!
|
||||
$!setvar("api_name", "a.name+a.version")!$#!
|
||||
$!setvar("api_clean", "api_name+'-clean'")!$#!
|
||||
$!gen_root!$: $!directories.api_base!$/$!a.name!$/$!a.version!$/$!a.name!$-api.json
|
||||
$!api_name!$: $!gen_root!$
|
||||
$!api_clean!$:
|
||||
rm -Rf $!gen_root!$
|
||||
$!api_info.append((api_name, api_clean, gen_root))!$#!
|
||||
|
||||
<!--(end)-->
|
||||
|
||||
.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)
|
||||
<!--(end)-->
|
||||
|
||||
|
||||
clean-api: $!' '.join(a[1] for a in api_info)!$
|
||||
Reference in New Issue
Block a user