all: index.gmi atom.xml index.gmi: *.gmi echo "# Metamatters" >| $@ echo "Yet another gemini gemini log." >> $@ echo "" >> $@ for f in `tac -s' '<<<"$^"`; do echo "`echo $$f | sed 's/\(..\)\(..\)\(..\)-\(.*\)\.gmi/=> & 20\1-\2-\3/'` `sed -n '/^##/b;s/^#\s*//p;tq;b;:q;q' < $$f`" >> $@; done echo "" >> $@ echo "=> Makefile Cheap makefile to generate this index" >> $@ echo "=> atom.xml Atom feed" >> $@ diohsc -e gemini://warmedal.se/~antenna/submit?gemini.thegonz.net/glog/ atom.xml: index.gmi gmisub2atom gemini://gemini.thegonz.net/glog/ < $< > $@