2024-02-15 07:29:56 -06:00
|
|
|
DEPLOY_HTTPROOT ?= httproot
|
2024-09-06 21:24:23 -05:00
|
|
|
DEPLOY_BLOBS = andrea0s-plain-noextfonts.svg blob/ebrimabd.ttf blob/window-capture blob/vcf-2024-pile.jpg
|
2024-02-15 07:29:56 -06:00
|
|
|
|
2023-10-20 04:31:43 -05:00
|
|
|
UNAME = $(shell uname)
|
|
|
|
|
ifeq ($(UNAME),Linux)
|
|
|
|
|
OPEN=xdg-open
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
BLOG_SRC=$(wildcard blog/*.md)
|
|
|
|
|
BLOG_HTML=$(foreach POST,$(BLOG_SRC),$(shell scripts/htmlify.bash $(POST)))
|
|
|
|
|
|
|
|
|
|
blog/%.inner.html: blog/%.md
|
|
|
|
|
pandoc --standalone --template template.html $^ -o $@
|
|
|
|
|
|
|
|
|
|
indicators: $(BLOG_SRC)
|
|
|
|
|
scripts/indicators.bash
|
|
|
|
|
|
|
|
|
|
blog/%.indicator.html: indicators
|
|
|
|
|
|
|
|
|
|
blog/%.html: %.head.html nav.head.html %.indicator.html nav.tail.html window.head.html %.inner.html window.tail.html
|
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
2024-10-04 14:28:31 -05:00
|
|
|
vcf%.html: vcf%.head.html nav.head.html blog/vcf%.indicator.html nav.tail.html window.head.html blog/vcf%.inner.html window.tail.html
|
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
2023-10-20 04:31:43 -05:00
|
|
|
blog.inner.html: $(BLOG_SRC)
|
|
|
|
|
scripts/blogposts.bash > $@
|
|
|
|
|
|
2024-10-04 15:11:15 -05:00
|
|
|
modules/resume/resume.md: .gitmodules
|
|
|
|
|
git submodule update --init --recursive -- modules/resume
|
|
|
|
|
|
|
|
|
|
resume.md: modules/resume/resume.md
|
|
|
|
|
tail -n+9 < $< > $@
|
|
|
|
|
|
2023-10-20 04:31:43 -05:00
|
|
|
resume.inner.html: resume.md
|
|
|
|
|
pandoc --standalone --template template.html $^ -o $@
|
|
|
|
|
|
|
|
|
|
blog-posts: $(BLOG_HTML) blog.inner.html blog.html
|
|
|
|
|
@echo $(BLOG_HTML)
|
|
|
|
|
|
|
|
|
|
index.html: indexhead.html nav.head.html index.indicator.html nav.tail.html index.tail.html
|
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
|
|
%.head.html:
|
|
|
|
|
cat headhead.html > $@
|
|
|
|
|
echo "<title>$* | Andrea OS</title>" >> $@
|
|
|
|
|
cat headtail.html >> $@
|
|
|
|
|
|
|
|
|
|
%.html: %.head.html nav.head.html %.indicator.html nav.tail.html window.head.html %.inner.html window.tail.html
|
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
|
|
test: index.html
|
|
|
|
|
$(OPEN) $<
|
|
|
|
|
|
2024-02-15 07:29:56 -06:00
|
|
|
$(DEPLOY_HTTPROOT)/blob:
|
|
|
|
|
mkdir -p $(@)
|
|
|
|
|
cp -rv $(DEPLOY_BLOBS) $(@)
|
|
|
|
|
|
|
|
|
|
deploy: all $(DEPLOY_HTTPROOT)/blob
|
|
|
|
|
cp -rv *.css *.html blog media \
|
|
|
|
|
$(DEPLOY_HTTPROOT)
|
|
|
|
|
|
2024-10-04 14:28:31 -05:00
|
|
|
all: blog-posts index.html blog.html resume.html vcfmw-2024.html
|
2023-10-20 04:31:43 -05:00
|
|
|
|
2024-02-15 07:29:56 -06:00
|
|
|
.PHONY: all blog-posts indicators deploy
|