From 69e832af275eca9adf34c90ba5273e653cc26d30 Mon Sep 17 00:00:00 2001 From: John Turner Date: Mon, 4 Aug 2025 03:12:31 -0400 Subject: create EMACS and ARGS variables in makefile --- makefile | 12 +++++++----- 1 file 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 -- cgit v1.2.3