Skip to content

Commit 13927b9

Browse files
committed
reorganized makefile
1 parent f1f261d commit 13927b9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
PLAYBOOK := local-antora-playbook.yml
2-
ANTORAFLAGS :=
31
CURRENT_COMMIT := $(shell git rev-parse HEAD)
42

3+
build-dev: build-ui
4+
node_modules/.bin/antora generate local-antora-playbook.yml
55

6-
build:
6+
build-prod: build-ui
7+
node_modules/.bin/antora generate antora-playbook.yml --fetch
8+
9+
build-ui:
710
node_modules/.bin/gulp --cwd ui bundle
8-
node_modules/.bin/antora generate $(PLAYBOOK) $(ANTORAFLAGS)
911

1012
clean:
1113
rm -r build
@@ -30,6 +32,6 @@ netlify-fetch:
3032
# go back to the initial commit to start the build
3133
git -c advice.detachedHead=false checkout --recurse-submodules $(CURRENT_COMMIT)
3234

33-
netlify-build: netlify-fetch build
35+
netlify-build: netlify-fetch build-prod
3436

35-
.PHONY: build clean netlify-fetch
37+
.PHONY: build-dev build-prod build-ui clean netlify-build netlify-fetch

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build]
2-
command = "make netlify-fetch && make ANTORAFLAGS=--fetch PLAYBOOK=antora-playbook.yml"
2+
command = "make netlify-build"
33
publish = "build/site"
44

55
[[redirects]]

0 commit comments

Comments
 (0)