no longer need this old makefile

This commit is contained in:
Medium Fries 2019-03-21 13:34:38 -07:00
parent 277eb4eb05
commit 02145a1182

View File

@ -1,41 +0,0 @@
# update style recipe and do some more code review
pd=pandoc
style=--css style.css
navbar='./templates/navbar.html'
# Builder directories
pageDir='./markdown/pages/'
postDir='./markdown/post/'
pages=$(wildcard './markdown/pages/'*md)
posts=$(wildcard markdown/post/*.md)
# Site directories
root='./tmp/'
sitePost=$(root)/post/
sitePage=$(root)/page/
.PHONY: posts pages
# Pattern matching things
$(sitePost)%.html: $(postDir)/%.md
$(pd) $< $(style) -s -o $@
$(sitePage)%.html: $(pageDir)/%.md
$(pd) $< $(style) -s -o $@
# Builder recipes for getting through all posts/pages
posts: $(posts:.md=.html)
pages: $(pages:.md=.html)
# xd
index: index.md
$(pd) index.md $(style) -s -o $(root)/index.html
# Injecting navbar into the index
sed -i '7r $(navbar)' $(root)/index.html
# neocites makes me login anyway
upload:
neocities push _site/