summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-05-23 22:52:39 -0400
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-05-23 22:52:39 -0400
commita998416c9bf88c9d9f021b0038b41a135fa6c07d (patch)
tree0450a4acb7ae83c29a2f1545909fbe2901e7881c /Makefile
parentd540887d847b08f39ab26f36550bbb981c0eb78d (diff)
downloadloh-website-a998416c9bf88c9d9f021b0038b41a135fa6c07d.tar.gz
Updated Minetest and LibreJam pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 371d668..facda02 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ 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>" >> $@
@@ -17,6 +18,7 @@ all: $(HTML) $(RSS_XML)
cat footer.html >> $@
%.xml: %.rss %.rss.header.xml %.rss.item_header.xml rss_item_footer.xml rss_footer.xml
+ @echo "RSS $@"
cat $<.header.xml > $@
for i in $(shell ls -r $</*.md | head -n 15) ; do \
cat $<.item_header.xml >> $@; \
@@ -28,7 +30,9 @@ all: $(HTML) $(RSS_XML)
done
cat rss_footer.xml >> $@
+.PHONY: clean
clean:
rm -f ${HTML}
rm -f ${RSS_XML}
+$(V).SILENT: