summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-08 18:32:01 -0400
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-08 18:32:01 -0400
commitc65cdc3c4125eb138ed2d22f4856707072b4c78e (patch)
tree23a2bc3358bceb8fc06d47466cd0c47da1ec81fb /Makefile
parent8ed7dc0b2187d522e2904e4b3b3e7919af461449 (diff)
downloadloh-website-c65cdc3c4125eb138ed2d22f4856707072b4c78e.tar.gz
Yes I'm super anal about the order of the makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 7d474dc..f567e37 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,15 @@ RSS_XML=$(RSS:%.rss=%.xml)
all: $(HTML) $(RSS_XML)
+%.html: %.gmi header.html footer.html gmi2html
+ @echo "GMI2HTML $@"
+ cp header.html $@
+ ./gmi2html < $< | sed -e 's/\.gmi/\.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 > $@
@@ -21,15 +30,6 @@ all: $(HTML) $(RSS_XML)
done
cat rss_footer.xml >> $@
-%.html: %.gmi header.html footer.html gmi2html
- @echo "GMI2HTML $@"
- cp header.html $@
- ./gmi2html < $< | sed -e 's/\.gmi/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@
- echo "</div>" >> $@
- echo "<br />" >> $@
- #lsand -H | tail -n +2 >> $@
- cat footer.html >> $@
-
gmi2html: gmi2html.c
@echo "CC $@"
$(CC) $(CFLAGS) $^ -o $@