-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 943 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 943 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
28
29
30
31
32
33
all: build
.PHONY: all
serve:
@$(if $(shell which forest), echo "forest-server installed", cargo install forest-server)
@forest watch 1313 -- "build --dev --base-url https://fizzyelt.github.io/functional-programming --root fp-0001 trees/ "
.PHONY: serve
release: assets/forester.js theme
@echo "Build forester"
@opam exec -- forester build --base-url https://fizzyelt.github.io/functional-programming --root fp-0001 trees/
.PHONY: release
build: assets/forester.js theme
@echo "Build forester"
@opam exec -- forester build --dev --base-url https://fizzyelt.github.io/functional-programming --root fp-0001 trees/
.PHONY: build
theme:
mkdir theme
assets/forester.js: node_modules assets
@echo "Build JS"
@./node_modules/.bin/esbuild --minify --bundle javascript/forester.js --outfile=assets/forester.js
node_modules:
npm install
deps:
cargo install forest-server
brew install watch texlive
opam install forester
.PHONY: deps