Blob


1 # sed -n 's/^ //p' $? > $@
3 RSYNC = openrsync --rsync-path=openrsync
5 .PHONY: all install publish
7 all:
8 @echo "usage:"
9 @echo " - install: install/replace the files in the system"
10 @echo " - publish: generate gemini and www version of the files"
11 @echo " - serve-gem: serve the gem directory"
12 @echo " - serve-www: serve the www directory"
13 @echo " - upload: publish the files on the geminispace and the web"
14 @echo " - clean: undo publish"
16 include Makefile.local
18 index.lp: README.md ${XXXFILES:=.lp}
19 cp README.md $@
20 printf "\n\n### Files\n\n" >> $@
21 for f in ${XXXFILES}; do printf "=> %s.EXT %s\n" "$$f" "$$f"; done>> $@
23 install: ${DOTFILES}
25 www: style.css
26 mkdir -p www
27 cp style.css www
29 gem:
30 mkdir gem
32 publish: gem ${GEMFILES} www ${WWWFILES}
34 serve-gem: publish
35 gmid -p 1966 gem
37 serve-www: publish
38 python3 -m http.server --directory www 8888
40 upload:
41 ${RSYNC} --del -a gem/ antartica:/var/gemini/dots.omarpolo.com
42 ${RSYNC} --del -a www/ antartica:/var/www/dots.omarpolo.com
44 clean:
45 rm -rf gem www index.lsp