-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·38 lines (33 loc) · 963 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
# This assumes that zola is installed from flatpak
.PHONY: build
build:
@echo "Cleaning up"
make clean
@echo "Building into public/"
flatpak run org.getzola.zola build
@echo "Compressing CSS"
csso public/style.css --output public/style.css --source-map public/style.css.map
.PHONY: build_dev
build_dev:
@echo "Cleaning up"
make clean
@echo "Building into public/"
flatpak run org.getzola.zola build -u "http://0.0.0.0:8080" --drafts
@echo "Compressing CSS"
csso public/style.css --output public/style.css --source-map public/style.css.map
@echo "Serve Static"
cd public/ && python3 -m http.server 8080 --bind 0.0.0.0
.PHONY: dev
dev:
@echo "Starting dev server..."
flatpak run org.getzola.zola serve
.PHONY: clean
clean:
@touch public
rm -rd public
.PHONY: setup
setup:
@echo "Installing zola via flatpak"
flatpak install flathub org.getzola.zola
@echo "Installing csso-cli via npm, this might require root"
sudo npm install -g csso-cli