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 robots.txt --target-directory $(PREFIX)/$(DESTDIR)/$(SITE)/ install --mode 644 -D sitemap.txt --target-directory $(PREFIX)/$(DESTDIR)/$(SITE)/ 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