thejerks.club/Makefile

49 lines
1.0 KiB
Makefile

PARSEFUNC=md4tj-parse
CC=emacs --no-site-file --batch -l ./md4tj/md4tj.el --eval
.PHONY: css
#.PHONY: vids
SITE_ROOT=./site_root
# Makes sure the necessary destination directories get made
SITE_ROOT_RESULT=$(shell sh make_site_root.sh)
BLOGS=$(wildcard ./blog/*.md4tj)
BLOGSHTMLTMP=$(addprefix $(SITE_ROOT)/,$(BLOGS))
BLOGSHTML=$(subst .md4tj,.html,$(BLOGSHTMLTMP))
#$(error $(BLOGSHTML))
all: $(SITE_ROOT_RESULT) index about links archives takes restaurants css blog contact dubuque
index: $(SITE_ROOT)/index.html
about: $(SITE_ROOT)/about.html
favorites: $(SITE_ROOT)/favorites.html
links: $(SITE_ROOT)/links.html
takes: $(SITE_ROOT)/takes.html
archives: $(SITE_ROOT)/archives.html
restaurants: $(SITE_ROOT)/restaurants.html
dubuque: $(SITE_ROOT)/dubuque.html
blog: $(SITE_ROOT)/blog.html $(BLOGSHTML)
contact: $(SITE_ROOT)/contact.html
$(SITE_ROOT)/%.html: %.md4tj
$(CC) "($(PARSEFUNC) \"$^\" \"$@\")"
$(SITE_ROOT)/blog/%.html: %.md4tj
$(CC) "($(PARSEFUNC) \"$^\" \"$@\")"
css:
cp css/main.css site_root/css
# vids:
# cp vids/* site_root/vids