-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 841 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
SHELL :=/usr/bin/env bash
CHANGELOG=CHANGELOG.md
CHANGELOG_TMP=tmp/$(CHANGELOG)
.PHONY: build
build:
$(MAKE) -j2 build-node build-web build-generator
.PHONY: build-node
build-node:
yarn build
.PHONY: build-web
build-web:
yarn build:web
.PHONY: build-generator
build-generator:
yarn build:generator
run .PHONY: deps
deps: ## Install bumpver
pip install bumpver==2024.1130
$(CHANGELOG_TMP):
mkdir -p tmp
echo -e "# Mercury Parser Changelog\n" > $(CHANGELOG_TMP)
echo $(now)
echo -e "### $(BUMPVER_NEW_VERSION) ($$(date '+%b %d, %Y'))\n" >> $(CHANGELOG_TMP)
yarn run --silent changelog-maker --format=markdown >> $(CHANGELOG_TMP)
cat $(CHANGELOG) | sed 1d >> $(CHANGELOG_TMP)
cp $(CHANGELOG_TMP) $(CHANGELOG)
$(CHANGELOG): $(CHANGELOG_TMP)
.PHONY: changelog
changelog: $(CHANGELOG)
.PHONY: preview
preview:
yarn preview