-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 823 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 823 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
DESTDIR = "./public"
APIDIR = "${DESTDIR}/api/v1"
.PHONY: all
all: build
.PHONY: build
build: ntt-update
@mkdir -p "${DESTDIR}"
@cp -rv --target="${DESTDIR}" assets content/*
# ntt-update updates all ntt related documents such as documentation or
# update-API.
.PHONY: ntt-update
ntt-update: ntt-pull-releases
# ntt-pull-releases updates the JSON files for ntt. These files are required by
# vscode-ttcn3 to find the latest ntt version without GitHub Rate Limiter.
.PHONY: ntt-pull-releases
ntt-pull-releases:
@mkdir -p "${APIDIR}/ntt/releases/latest"
curl 'https://api.github.com/repos/nokia/ntt/releases?per_page=100' > "${APIDIR}/ntt/releases/index.json"
curl 'https://api.github.com/repos/nokia/ntt/releases/latest' > "${APIDIR}/ntt/releases/latest/index.json"
.PHONY: clean
clean:
@rm -rvf -- "${DESTDIR}"