summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-08-04 03:12:31 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-08-04 03:12:31 -0400
commit69e832af275eca9adf34c90ba5273e653cc26d30 (patch)
treef4b0a356a0751109ecc8177c2ef90098c4e2c118
parentdfc64a12e2c43329c4eedb36b12f1b400da4069e (diff)
downloadwebsite-69e832af275eca9adf34c90ba5273e653cc26d30.tar.gz
create EMACS and ARGS variables in makefile
-rw-r--r--makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/makefile b/makefile
index 8911fdc..d5dbd38 100644
--- a/makefile
+++ b/makefile
@@ -1,18 +1,20 @@
+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 -batch $< -e 'org-html-export-to-html'
+ $(EMACS) $< $(ARGS)
blog/index.html: blog/index.org
- emacs -batch $< -e 'org-html-export-to-html'
+ $(EMACS) $< $(ARGS)
blog/gentoo-on-gcloud.html: blog/gentoo-on-gcloud.org
- emacs -batch $< -e 'org-html-export-to-html'
+ $(EMACS) $< $(ARGS)
install:
mkdir srv srv/blog
- cp *.html srv
- cp -r blog srv
+ cp -r *.html blog srv
clean:
rm -rf *.html blog/*.html srv