forked from aws/amazon-genomics-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 1.09 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
VERSION := $(shell git describe --always --tags)
PACKAGES := $(shell ls -d ${PWD}/packages/*/ | grep -v -E "(vendor|api|engines)")
.PHONY: test build build-cli release release-cli release-cdk $(PACKAGES)
all: format test build
format:
target=format $(MAKE) $(PACKAGES)
test:
target=test $(MAKE) $(PACKAGES)
$(PACKAGES):
(cd $@; $(MAKE) $(target))
build: build-cli
build-cli:
(cd packages/cli; $(MAKE) build)
release: release-cli release-cdk release-wes
./scripts/package-release.sh
release-cli:
(cd packages/cli; $(MAKE) release)
release-cdk:
(cd packages/cdk; $(MAKE) release)
release-wes:
(cd packages/wes_adapter; $(MAKE) release)
init:
go env -w GOPROXY=direct
target=init $(MAKE) $(PACKAGES)
docs: build-cli
packages/cli/bin/local/agc --docs site/content/en/docs/Reference/
git submodule update --init --recursive
cd site && npm install && hugo
clean-docs:
rm -f site/content/en/docs/Reference/agc*.md
rm -rf docs
start-docs: build-cli
packages/cli/bin/local/agc --docs site/content/en/docs/Reference/
git submodule update --init --recursive
cd site && npm install && hugo server -D