Created
January 22, 2012 13:21
-
-
Save nus/1657056 to your computer and use it in GitHub Desktop.
LaTeX makefile for me.
This file contains hidden or 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
TMP = tmp | |
SRC = src/*.tex | |
STYLE = style/*.sty | |
IMG = img/*.eps | |
TARGET = master_thesis | |
master: mkdir_tmp copy_style copy_src convert_img_and_move | |
cd $(TMP);¥ | |
platex $(TARGET).tex | |
cd $(TMP);¥ | |
dvipdfmx $(TARGET).dvi | |
mkdir_tmp: | |
mkdir -p $(TMP) | |
copy_style: | |
cp $(STYLE) $(TMP) | |
copy_src: | |
cp $(SRC) $(TMP) | |
convert_img_and_move: | |
mogrify -format eps img/*.png | |
mv $(IMG) $(TMP) | |
pdf: | |
cd $(TMP);¥ | |
dvipdfmx $(TARGET).dvi | |
clean: | |
rm -r tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment