-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 844 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
.PHONY: rss mastodon run update-socialstore-me
rss:
curl -k -u kevin https://rss.local.squirrels.dk/v1/export > data/links.xml
run:
hugo server --buildDrafts --buildFuture --minify
socialstore-me:
git clone --depth=1 [email protected]:sudorandom/socialstore-me.git
update-socialstore-me: socialstore-me
cd socialstore-me; git fetch origin; git reset --hard origin/main
mastodon: update-socialstore-me
@mkdir -p assets/mastodon data/mastodon
cp -r socialstore-me/media/* assets/mastodon/
cp -r socialstore-me/statuses/* data/mastodon/
build:
hugo --gc --minify --cleanDestinationDir --baseURL "https://kmcd.dev/" --destination=live
npx -y pagefind --site live
build-future:
hugo --gc --minify --cleanDestinationDir --baseURL "https://shhh.kmcd.dev/" --buildFuture --buildDrafts --destination=future
npx -y pagefind --site future