summaryrefslogtreecommitdiff
path: root/makefile
blob: 5f877734ba9529a2fcccdd3a34d01f59e71c4be0 (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
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

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)

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