Skip to content

Commit 9152db5

Browse files
Merge pull request #1506 from gooddata/snapshot-master-35605f6a-to-rel/dev
[bot] Merge master/35605f6a into rel/dev
2 parents f1bbfda + 35605f6 commit 9152db5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ define generate_client
5858
./scripts/generate_client.sh gooddata-$(1)-client -f "/local/schemas/gooddata-$(1)-client.json"
5959
endef
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
7379
download:
7480
$(call download_client,afm)

0 commit comments

Comments
 (0)