-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 861 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
build: build-static build-hugo postscript-build
full-build: clean build
serve: build-static serve-hugo
clean:
rm -rf public/
build-static:
./static/generate.sh
gen-lastupdate:
@echo "Update lastupdate file"
@sh -c "echo \"<!DOCTYPE html><html lang=\\\"en\\\"><body><pre style=\\\"font-size: xx-small\\\">Last update: \$$(date +%s)</pre></body></html>\" > static/lastupdate.html"
build-hugo: gen-lastupdate
build-hugo:
hugo $(HUGO_ARGS)
postscript-build:
./scripts/ignore-files.sh
./scripts/generate-git.sh
serve-hugo: gen-lastupdate
serve-hugo:
hugo server $(HUGO_ARGS)
publish-ipfs: build ipfs-pin-public
ipfs-pin-public:
ipfs add --nocopy --fscache --raw-leaves --pin -r public/
pack-car: build npx-ipfs-car-public
npx-ipfs-car-public:
npx ipfs-car --pack public/ --output public.car
npx ipfs-car --list-roots public.car > public.car.cid