thejerks.club/Makefile

29 lines
577 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_parse.el --eval
.PHONY: css
2023-01-04 08:57:27 -05:00
.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-01-04 08:57:27 -05:00
all: $(SITE_ROOT_RESULT) index about links archives css vids
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
archives: $(SITE_ROOT)/archives.html
$(SITE_ROOT)/%.html: %.md4tj
$(CC) "($(PARSEFUNC) \"$^\" \"$@\")"
2023-01-04 08:57:27 -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
vids:
cp vids/* site_root/vids