Skip to content

Instantly share code, notes, and snippets.

@nus
Created January 22, 2012 13:21
Show Gist options
  • Save nus/1657056 to your computer and use it in GitHub Desktop.
Save nus/1657056 to your computer and use it in GitHub Desktop.
LaTeX makefile for me.
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