mirror of
https://github.com/balkian/gists.git
synced 2024-12-04 14:12:29 +00:00
This commit is contained in:
parent
c47b562b39
commit
9491756c95
8
Makefile
8
Makefile
@ -3,13 +3,12 @@
|
|||||||
# Author: @balkian
|
# Author: @balkian
|
||||||
# TODO: Only import the tex files used in the main file, and their images.
|
# TODO: Only import the tex files used in the main file, and their images.
|
||||||
|
|
||||||
|
AUX_DIR=.aux
|
||||||
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
|
||||||
|
|
||||||
@ -42,14 +41,15 @@ $(HIGHLIGHTS).pdf: $(HIGHLIGHTS).md
|
|||||||
$(COVER).pdf: $(COVER).md
|
$(COVER).pdf: $(COVER).md
|
||||||
pandoc $(COVER).md -o $(COVER).pdf
|
pandoc $(COVER).md -o $(COVER).pdf
|
||||||
|
|
||||||
$(PAPER).zip: $(LATEX).pdf $(LETTER).pdf
|
$(LATEX).zip: $(LATEX).pdf $(LETTER).pdf $(HIGHLIGHTS).pdf $(COVER).pdf
|
||||||
@zip $(LATEX).zip *.tex $(LETTER).pdf $(COVER).pdf $(HIGHLIGHTS).pdf $(LATEX).pdf
|
@zip $(LATEX).zip *.tex $(LETTER).pdf $(COVER).pdf $(HIGHLIGHTS).pdf
|
||||||
@for r in `sed -n 's/.*bibliography{\(.*\)}.*/\1/p' *.tex`; do \
|
@for r in `sed -n 's/.*bibliography{\(.*\)}.*/\1/p' *.tex`; do \
|
||||||
zip $(LATEX).zip $$r.bib; \
|
zip $(LATEX).zip $$r.bib; \
|
||||||
done
|
done
|
||||||
@for i in `sed -n 's/.*includegraphics\[.*\]{\(.*\)}.*/\1/p' *.tex`; do \
|
@for i in `sed -n 's/.*includegraphics\[.*\]{\(.*\)}.*/\1/p' *.tex`; do \
|
||||||
zip $(LATEX).zip figures/$$i.eps; \
|
zip $(LATEX).zip figures/$$i.eps; \
|
||||||
done
|
done
|
||||||
|
zip Makefile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-rm -rf $(AUX_DIR)
|
@-rm -rf $(AUX_DIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user