1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-22 09:42:28 +00:00
This commit is contained in:
J. Fernando Sánchez 2015-03-25 19:25:34 -07:00
parent 504335dfca
commit 720a2d1efd

View File

@ -1,13 +1,21 @@
AUX_DIR=.aux # Some automation to submit to a journal (e.g. Elsevier).
# It detects the main latex file and eps files used.
# Author: @balkian
# TODO: Only import the tex files used in the main file, and their images.
LATEX=$(basename $(shell grep -l '\\begin{document' *.tex)) LATEX=$(basename $(shell grep -l '\\begin{document' *.tex))
LETTER=letter LETTER=letter
COVER=cover COVER=cover
HIGHLIGHTS=highlights HIGHLIGHTS=highlights
HTML_OUT=$(LETTER).html HTML_OUT=$(LETTER).html
AUX_DIR=.aux
.PHONY: all cover clean highlights latex letter zip .PHONY: all cover clean highlights latex letter zip
all: $(COVER).pdf $(LETTER).pdf | zip default: latex
all: $(LATEX).pdf $(LETTER).pdf $(COVER).pdf $(HIGHLIGHTS).pdf | zip
$(AUX_DIR): $(AUX_DIR):
@mkdir -p $(AUX_DIR) @mkdir -p $(AUX_DIR)