-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 983 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
setup:
@brew install rust
@brew install hugo
@cargo install obsidian-export
@git clone [email protected]:consolelabs/content.git vault
@mkdir -p ./content
setup-devbox:
@if ! command -v devbox >/dev/null 2>&1; then curl -fsSL https://get.jetpack.io/devbox | bash; fi
@devbox install
@mkdir -p ./content
build:
@obsidian-export --hard-linebreaks ./vault ./content
@hugo -DEF --minify
run:
@obsidian-export --hard-linebreaks ./vault ./content
hugo -DEF server
watch-run:
@rm -rf ./content
@mkdir -p content
@obsidian-export --hard-linebreaks ./vault ./content
@./inotify.sh ./vault obsidian-export --hard-linebreaks ./vault ./content &
@hugo -DEF server
build-target:
@mkdir -p vault content
@rsync -avh "$(path)" ./vault/ --delete
@obsidian-export --hard-linebreaks ./vault/ ./content/
@hugo -DEF --minify
run-target:
@mkdir -p vault content
@rsync -avh "$(path)" ./vault/ --delete
@obsidian-export --hard-linebreaks ./vault/ ./content/
@hugo -DEF server