ORG_FILES := $(shell find . -type f -name '*.org' ) HTML_FILES := $(patsubst %.org,temp/%.html,$(ORG_FILES)) .PHONY: all clean all: $(HTML_FILES) temp/%.html: %.org | temp emacs $< --batch -f org-html-export-to-html --kill mv $(basename $<).html $@ temp: mkdir temp mkdir temp/meta clean: rm -rf temp