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