diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ce71acb --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +############################################################################### +# +# Makefile for the user manual of njuthesis +# +# Copyright (C) 2013 Haixing Hu, +# Department of Computer Science and Technology, Nanjing University. +# +# Home Page of the Project: https://github.com/Haixing-Hu/nju-thesis +# +############################################################################### + +PROJECT=njuthesis +TEXSOURCE=$(shell ls *.tex) +BIB=njuthesis.bib + +.PHONY: all clean + +all: $(PROJECT).pdf + +$(PROJECT).pdf: $(PROJECT).tex $(BIB) $(TEXSOURCE) + xelatex $(PROJECT).tex + biber $(PROJECT) + xelatex $(PROJECT).tex + xelatex $(PROJECT).tex + +###### clean + +clean: + -@rm -f \ + *.aux \ + *.bak \ + *.bbl \ + *.blg \ + *.dvi \ + *.glo \ + *.gls \ + *.idx \ + *.ilg \ + *.ind \ + *.ist \ + *.log \ + *.out \ + *.ps \ + *.thm \ + *.toc \ + *.lof \ + *.lot \ + *.loe \ + *.sty \ + *.cfg \ + *.cls \ + *.sty \ + *.pdf