git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

Makefile (861B)


      1 build: build-static build-hugo postscript-build
      2 full-build: clean build
      3 serve: build-static serve-hugo
      4 
      5 clean:
      6 	rm -rf public/
      7 
      8 build-static:
      9 	./static/generate.sh
     10 
     11 gen-lastupdate:
     12 	@echo "Update lastupdate file"
     13 	@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"
     14 
     15 build-hugo: gen-lastupdate
     16 build-hugo:
     17 	hugo $(HUGO_ARGS)
     18 
     19 postscript-build:
     20 	./scripts/ignore-files.sh
     21 	./scripts/generate-git.sh
     22 
     23 serve-hugo: gen-lastupdate
     24 serve-hugo:
     25 	hugo server $(HUGO_ARGS)
     26 
     27 publish-ipfs: build ipfs-pin-public
     28 
     29 ipfs-pin-public:
     30 	ipfs add --nocopy --fscache --raw-leaves --pin -r public/
     31 
     32 pack-car: build npx-ipfs-car-public
     33 
     34 npx-ipfs-car-public:
     35 	npx ipfs-car --pack public/ --output public.car
     36 	npx ipfs-car --list-roots public.car > public.car.cid