From 3ef1b4761008b1240901a3253f45ff26dc437a55 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Tue, 12 Oct 2021 19:30:07 +0200 Subject: [PATCH] Fix html creation --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 488771f..50a8c24 100644 --- a/Makefile +++ b/Makefile @@ -93,5 +93,7 @@ install: .PHONY: html EMACS_HTML = $(EMACS) --load ./etc/emacs/html.el -html: - $(EMACS_HTML) $(ORG_MAIN) --eval "(org-html-export-to-html)" +HTML_MAIN = $(patsubst %.org,%.html,$(ORG_MAIN)) +html: $(HTML_MAIN) +%.html: %.org + $(EMACS_HTML) $< --eval "(org-html-export-to-html)"