Last active
December 25, 2015 15:59
-
-
Save TakashiUNUMA/7002805 to your computer and use it in GitHub Desktop.
Makefile for compiling a LaTeX file by the use of XeLaTeX.
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
SHELL = /bin/sh | |
FILE0 = main | |
TEX = $(FILE0).tex | |
XDV = $(FILE0).xdv | |
PDF = $(FILE0).pdf | |
PDFOUT = $(FILE0)_final.pdf | |
FILE1 = handout | |
HTEX = $(FILE1).tex | |
HXDV = $(FILE1).xdv | |
HPDF = $(FILE1).pdf | |
all: | |
make tex | |
tex: | |
xelatex -no-pdf $(TEX) | |
xelatex -no-pdf $(TEX) | |
xdvipdfmx.exe $(XDV) | |
# xelatex $(TEX) | |
make clean | |
handout: | |
xelatex -no-pdf $(HTEX) | |
xelatex -no-pdf $(HTEX) | |
xdvipdfmx.exe $(HXDV) | |
# xelatex $(HTEX) | |
make clean | |
pw: | |
pdftk $(PDF) output $(PDFOUT) owner_pw ownerpasswd user_pw userpasswd compress encrypt_128bit | |
help: | |
echo "USAGE: make [all/tex/handout/pw/clean]" | |
clean: | |
rm -f *.aux *.dvi *.idx *.ilg *.ind *.log *.nav *.out *.snm *.xdv *.toc *~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment