Blob


1 # sed -n 's/^ //p' $? > $@
3 .PHONY: all install publish
5 all:
6 @echo "usage:"
7 @echo " - install: install/replace the files in the system"
8 @echo " - publish: generate gemini and www version of the files"
9 @echo " - serve-gem: serve the gem directory"
10 @echo " - serve-www: serve the www directory"
11 @echo " - upload: publish the files on the geminispace and the web"
12 @echo " - clean: undo publish"
14 include Makefile.local
16 install: ${DOTFILES}
18 www: style.css
19 mkdir -p www
20 cp style.css www
22 gem:
23 mkdir gem
25 publish: gem ${GEMFILES} www ${WWWFILES}
27 serve-gem: publish
28 gmid -p 1966 gem
30 serve-www: publish
31 python3 -m http.server --directory www 8888
33 upload:
34 rsync --delete -a gem/ op:gemini/dots.omarpolo.com
35 rsync --delete -a www/ op:sites/dots.omarpolo.com
37 clean:
38 rm -rf gem www