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 index.lp: README.md ${XXXFILES:=.lp}
17 cp README.md $@
18 printf "\n\n### Files\n\n" >> $@
19 for f in ${XXXFILES}; do printf "=> %s.EXT %s\n" "$$f" "$$f"; done>> $@
21 install: ${DOTFILES}
23 www: style.css
24 mkdir -p www
25 cp style.css www
27 gem:
28 mkdir gem
30 publish: gem ${GEMFILES} www ${WWWFILES}
32 serve-gem: publish
33 gmid -p 1966 gem
35 serve-www: publish
36 python3 -m http.server --directory www 8888
38 upload:
39 openrsync --rsync-path=openrsync --del -a gem/ antartica:/var/gemini/dots.omarpolo.com
40 openrsync --rsync-path=openrsync --del -a www/ antartica:/var/www/dots.omarpolo.com
42 clean:
43 rm -rf gem www index.lsp