Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shelley-ma to Readme and add a makefile
- Loading branch information
Jared Corduan
committed
Sep 21, 2020
1 parent
adb691c
commit 1408241
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## | ||
## Makefile for a specification of the delegation rules, based on: | ||
## | ||
## https://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project | ||
## | ||
|
||
# Document name | ||
ifndef DOCNAME | ||
DOCNAME = shelley-ma | ||
endif | ||
|
||
# You want latexmk to *always* run, because make does not have all the info. | ||
# Also, include non-file targets in .PHONY so they are run regardless of any | ||
# file of the given name existing. | ||
.PHONY: $(DOCNAME).pdf all clean | ||
|
||
# The first rule in a Makefile is the one executed by default ("make"). It | ||
# should always be the "all" rule, so that "make" and "make all" are identical. | ||
all: $(DOCNAME).pdf | ||
|
||
## | ||
## CUSTOM BUILD RULES | ||
## | ||
|
||
## | ||
## MAIN LATEXMK RULE | ||
## | ||
|
||
# -pdf tells latexmk to generate PDF directly (instead of DVI). | ||
# -pdflatex="" tells latexmk to call a specific backend with specific options. | ||
# -use-make tells latexmk to call make for generating missing files. | ||
|
||
# -interaction=nonstopmode keeps the pdflatex backend from stopping at a | ||
# missing file reference and interactively asking you for an alternative. | ||
|
||
$(DOCNAME).pdf: $(DOCNAME).tex | ||
latexmk -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $(DOCNAME).tex | ||
|
||
watch: $(DOCNAME).tex | ||
latexmk -pvc -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $(DOCNAME).tex | ||
|
||
clean: | ||
latexmk -CA | ||
|
||
install: | ||
mkdir -pv ${out}/nix-support/ | ||
for i in $(DOCNAME) ; do \ | ||
cp $$i.pdf ${out}/ ; \ | ||
echo "doc-pdf $$i ${out}/$$i.pdf" >> ${out}/nix-support/hydra-build-products ; \ | ||
done |