-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1.11 KB
/
Makefile
File metadata and controls
33 lines (25 loc) · 1.11 KB
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
themes/ght1pc9kc/node_modules:
cd themes/ght1pc9kc && \
npm ci --unsafe-perm
themes/ght1pc9kc/static/syntax.css: themes/ght1pc9kc/node_modules
cd themes/ght1pc9kc && \
npx @tailwindcss/cli -i src/syntax.css -o static/syntax.css --minify
themes/ght1pc9kc/static/main.css: themes/ght1pc9kc/node_modules
cd themes/ght1pc9kc && \
npx @tailwindcss/cli -i src/main.css -o static/main.css --minify
watch: themes/ght1pc9kc/node_modules themes/ght1pc9kc/static/syntax.css
cd themes/ght1pc9kc && \
npx @tailwindcss/cli -i src/main.css -o static/main.css --watch
serve: themes/ght1pc9kc/static/syntax.css themes/ght1pc9kc/static/main.css
docker run -u $(shell id -u):$(shell id -g) -it --rm -p 1313:1313 -v "$$PWD:/src" \
hugomods/hugo:base-0.145.0 \
hugo server --buildFuture --buildDrafts --bind 0.0.0.0
pages: themes/ght1pc9kc/static/syntax.css themes/ght1pc9kc/static/main.css
hugo --minify -b $$CF_PAGES_URL
clean:
rm -rf themes/ght1pc9kc/static
rm -rf themes/ght1pc9kc/node_modules
rm -rf public
rm -rf resources/_gen
list:
make -npq : 2> /dev/null | awk -v RS= -F: '$$1 ~ /^[^#%.]+$$/ { print $$1 }' | sort -u