-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 843 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
BASE_URL ?= "/"
VERSION ?= ""
SHELL = /bin/bash
build: version # Build the project artefact @Pipeline
VER=$$(cat .version) && cd .. && make build-yml-oas-spec APIM_ENV=prod && npm run generate --buildver=$$VER && cd sdk
./swagger-static.sh
clean: # Clean-up project resources (main) @Operations
rm -rf */
swagger:
./swagger.sh
version:
touch _config.version.yml
if [[ $(VERSION) == "" ]]; then \
(cd .. && make version); \
ver=$$(head -n 1 ../.version 2> /dev/null || echo unknown); \
echo "version: $$ver" > _config.version.yml; \
echo "$$ver" > .version; \
else \
echo "version: $(VERSION)" > _config.version.yml; \
echo "$(VERSION)" > .version; \
fi
echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json