File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ define generate_client
5858 ./scripts/generate_client.sh gooddata-$(1 ) -client -f "/local/schemas/gooddata-$(1 ) -client.json"
5959endef
6060
61- .PHONY : api -client
62- api -client: download
61+ .PHONY : _api -client-generate
62+ _api -client-generate :
6363 rm -f schemas/gooddata-api-client.json
6464 cat schemas/gooddata-* .json | jq -S -s ' reduce .[] as $$item ({}; . * $$item) + { tags : ( reduce .[].tags as $$item (null; . + $$item) | unique_by(.name) ) }' | sed ' /\u0000/d' > " schemas/gooddata-api-client.json"
6565 $(call generate_client,api)
@@ -69,6 +69,12 @@ api-client: download
6969 sed -i.bak ' s/\^\[\^\]\*\$$/^[^\\x00]*$$/g' {} + && \
7070 find gooddata-api-client/gooddata_api_client -name ' *.py.bak' -delete
7171
72+ .PHONY : api-client
73+ api-client : download _api-client-generate
74+
75+ .PHONY : api-client-local
76+ api-client-local : _api-client-generate
77+
7278.PHONY : download
7379download :
7480 $(call download_client,afm)
You can’t perform that action at this time.
0 commit comments