summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 5753b5f..97a1d52 100644
--- a/Makefile
+++ b/Makefile
@@ -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