Skip to content

Commit 02fc3ff

Browse files
authored
Merge pull request #19 from luksamuk/master
Adiciona Makefile para exportar org => html. Closes #18.
2 parents 823b039 + 3139e1e commit 02fc3ff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
EMACS_INIT := ~/.emacs.d/init.el
2+
EMACS_LOAD := -l $(EMACS_INIT)
3+
EMACS_FLAGS := --batch --kill $(EMACS_LOAD)
4+
ORG_FILES := $(wildcard *.org)
5+
HTML_FILES := $(patsubst %.org, %.html, $(ORG_FILES))
6+
7+
.PHONY: clean
8+
9+
all: $(HTML_FILES)
10+
11+
%.html: %.org
12+
emacs $< $(EMACS_FLAGS) -f org-html-export-to-html
13+
14+
clean:
15+
rm -rf *.html

0 commit comments

Comments
 (0)