thejerks.club/Makefile

45 lines
984 B
Makefile
Raw Normal View History

2022-12-31 21:26:46 -05:00
PARSEFUNC=md4tj-parse
CC=emacs --no-site-file --batch -l ./md4tj/md4tj.el --eval
2022-12-31 21:26:46 -05:00
.PHONY: css
#.PHONY: vids
2022-12-31 21:26:46 -05:00
SITE_ROOT=./site_root
# Makes sure the necessary destination directories get made
SITE_ROOT_RESULT=$(shell sh make_site_root.sh)
2022-12-31 21:26:46 -05:00
2023-03-26 22:16:24 -04:00
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
2023-01-01 10:52:52 -05:00
index: $(SITE_ROOT)/index.html
2022-12-31 21:26:46 -05:00
about: $(SITE_ROOT)/about.html
2022-12-31 21:26:46 -05:00
links: $(SITE_ROOT)/links.html
2023-01-02 21:11:26 -05:00
takes: $(SITE_ROOT)/takes.html
archives: $(SITE_ROOT)/archives.html
restaurants: $(SITE_ROOT)/restaurants.html
2023-03-26 22:16:24 -04:00
blog: $(SITE_ROOT)/blog.html $(BLOGSHTML)
contact: $(SITE_ROOT)/contact.html
$(SITE_ROOT)/%.html: %.md4tj
$(CC) "($(PARSEFUNC) \"$^\" \"$@\")"
2023-01-04 08:57:27 -05:00
2023-03-26 22:16:24 -04:00
$(SITE_ROOT)/blog/%.html: %.md4tj
$(CC) "($(PARSEFUNC) \"$^\" \"$@\")"
css:
2023-01-02 21:11:26 -05:00
cp css/main.css site_root/css
2023-01-04 08:57:27 -05:00
# vids:
# cp vids/* site_root/vids