wowana.me
website source
commit a929095630889a601e869a13e862d2e860d2988d parent e499ebc201b200ee8f17bf8daa616706b7afa9a9 Author: opal hart <opal@wowana.me> Date: Sat, 22 Feb 2020 06:58:15 +0000 update Makefile to use alternate markdown impl Diffstat:
M | Makefile | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -3,6 +3,7 @@ BLOGSRC := $(wildcard src/blog/*.md) SRC := $(wildcard src/*.md) $(BLOGSRC) OBJ := $(SRC:%.md=%.part.xht) src/blog/index.part.xht FINAL := $(OBJ:src/%.part.xht=out/%.xht) out/blog/index.xht out/blog/feed.atom +MARKDOWN := hoedown --xhtml .INTERMEDIATE: $(OBJ) @@ -15,14 +16,14 @@ check: $(FINAL) clean: # only removes files we generated, not manually-created files - rm -f $(FINAL) + rm -f $(FINAL) $(OBJ) upload: rsync -Pauvz --exclude-from=rsync-ignore --delete out/ mimiga:www/wowana.me/ rsync -Pauvz out/git/ mimiga:/var/lib/git/ src/%.part.xht: src/%.md - ./scripts/altnet.sh < $< | markdown > $@ + ./scripts/altnet.sh < $< | $(MARKDOWN) > $@ src/blog/index.part.xht: $(BLOGSRC) ( \ @@ -31,7 +32,7 @@ src/blog/index.part.xht: $(BLOGSRC) iso="$$(date -Iseconds -r$$filename)"; \ human="$$(date +'%Y %b %d' -r$$filename)"; \ grep -H '^# ' $$filename | sed 's@^src/blog/\(.*\).md:# \(.*\)@* [\2](\1.xht)'" *last updated <time datetime='$$iso' title='$$iso'>$$human</time>*@"; \ - done ) | markdown > $@ + done ) | $(MARKDOWN) > $@ out/%.xht: src/%.part.xht src/header.inc src/footer.inc ./scripts/postproc.sh $< > $@