-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
53 lines (38 loc) · 1016 Bytes
/
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
51
52
53
export NODE_OPTIONS="--unhandled-rejections=strict"
all: deps releases all_dists site
# DISTS are sorted in reverse lex order
# because 'kubo' MUST build before 'go-ipfs'
reverse = $(if $1,$(call reverse,$(wordlist 2,999999,$1)) $(firstword $1))
DISTS = $(call reverse,$(sort $(notdir $(wildcard dists/*))))
NIGHTLY_IGNORED := $(shell cat ignored-during-nightly)
DISTS_FILTERED = $(filter-out $(NIGHTLY_IGNORED),$(DISTS))
NDISTS = $(DISTS_FILTERED:%=nightly-%)
.PHONY: all all_dists deps nightly
all_dists: $(DISTS)
$(DISTS):
@echo "** $@ **"
$(MAKE) -C dists/$@
@echo ""
nightly: $(NDISTS)
$(NDISTS):
@echo "** $@ Nightly **"
$(MAKE) -C dists/$(@:nightly-%=%) nightly
@echo ""
deps:
./deps-check.sh
releases:
mkdir -p releases
.PHONY: site
site: deps
@echo "** Building site **"
npm run build
publish: deps all_dists site
./scripts/patch.js
diff:
./scripts/diff.js > diff
clean:
rm -rf releases
chmod -f -R u+w dists/*/gopath || true
rm -rf dists/*/gopath
npm run clean
.NOTPARALLEL: