diff options
author | Katherine Peeters <katherine.peeters@leagueh.xyz> | 2021-08-08 12:40:01 -0400 |
---|---|---|
committer | Katherine Peeters <katherine.peeters@leagueh.xyz> | 2021-08-08 12:40:01 -0400 |
commit | 203c2546c268010ed6d94e34b83803e999dcb7f1 (patch) | |
tree | 2e96db0bfca673a475d16679504913246a57578f /Makefile | |
parent | 5e081c11cc0ea69fcc5bce1696c64d38ede4849d (diff) | |
download | loh-website-203c2546c268010ed6d94e34b83803e999dcb7f1.tar.gz |
Converted root of site to gemtext
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -1,6 +1,5 @@ GEMTEXT=$(shell find -L site -type f -name "*.gmi" -print) -MARKDOWN=$(shell find -L site -type f -name "*.md" -print) -HTML=$(MARKDOWN:%.md=%.html) +HTML=$(GEMTEXT:%.gmi=%.html) RSS=$(shell find -L . -type d -name "*.rss" -print) RSS_XML=$(RSS:%.rss=%.xml) @@ -9,15 +8,6 @@ RSS_XML=$(RSS:%.rss=%.xml) all: $(HTML) $(RSS_XML) -%.html: %.md header.html footer.html - @echo "HTML $@" - cp header.html $@ - markdown -f fencedcode $< | sed -e 's/\.md/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@ - echo "</div>" >> $@ - echo "<br>" >> $@ - lsand -H | tail -n +2 >> $@ - cat footer.html >> $@ - %.xml: %.rss %.rss.header.xml %.rss.item_header.xml rss_item_footer.xml rss_footer.xml @echo "RSS $@" cat $<.header.xml > $@ @@ -34,11 +24,10 @@ all: $(HTML) $(RSS_XML) %.html: %.gmi header.html footer.html gmi2html @echo "GMI2HTML $@" cp header.html $@ - ./gmi2html < $< > help.txt - ./gmi2html < $< | sed -e 's/\.md/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@ + ./gmi2html < $< | sed -e 's/\.gmi/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@ echo "</div>" >> $@ echo "<br />" >> $@ - lsand -H | tail -n +2 >> $@ + #lsand -H | tail -n +2 >> $@ cat footer.html >> $@ gmi2html: gmi2html.c |