first commit
This commit is contained in:
26
makefile
Normal file
26
makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
COMMANDS := build watch rebuild clean
|
||||
.PHONY: $(COMMANDS)
|
||||
|
||||
# Set the default goal, so running 'make' without arguments will run 'make build'.
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
|
||||
# ---
|
||||
$(COMMANDS): site
|
||||
@echo "Running command: ./site $@"
|
||||
-@./site $@
|
||||
|
||||
|
||||
# --- Rules ---
|
||||
# using relative symlinks should be fine since everything only works at ./
|
||||
|
||||
|
||||
site: src/site.hs src/ChaoDoc.hs
|
||||
cabal build
|
||||
ln -sf "$(shell cabal list-bin exe:site)" site
|
||||
|
||||
# move from katex to mathjax
|
||||
# katex_cli:
|
||||
# cd katex_rust_fork && cargo build --release
|
||||
# ln -sf ./katex_rust_fork/target/release/katex_cli katex_cli
|
||||
Reference in New Issue
Block a user