blob: b484fa5b9e09ce2b91ffec317490549d78d2fe2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
SITE ?= jturnerusa.dev
PREFIX ?= /
DESTDIR ?= /var/www
EMACS ?= emacs
ARGS = -batch -e "org-html-export-to-html"
all: index.html blog/index.html blog/gentoo-on-gcloud.html blog/access-control.html
index.html: index.org
$(EMACS) $< $(ARGS)
blog/index.html: blog/index.org
$(EMACS) $< $(ARGS)
blog/gentoo-on-gcloud.html: blog/gentoo-on-gcloud.org
$(EMACS) $< $(ARGS)
blog/access-control.html: blog/access-control.org
$(EMACS) $< $(ARGS)
install: all
install --mode 644 -D *.html --target-directory $(PREFIX)/$(DESTDIR)/$(SITE)/
install --mode 644 -D blog/*.html --target-directory $(PREFIX)/$(DESTDIR)/$(SITE)/blog/
clean:
rm *.html blog/*.html
|