| 1 |
# |
| 2 |
# Copyright (C) 2007 by Xu Yuan <[email protected]> |
| 3 |
# $Id$ |
| 4 |
# |
| 5 |
# This file is part of the SEU-Thesis package project. |
| 6 |
# --------------------------------------------------- |
| 7 |
# |
| 8 |
# This file may be distributed and/or modified under the |
| 9 |
# conditions of the LaTeX Project Public License, either version 1.3a |
| 10 |
# of this license or (at your option) any later version. |
| 11 |
# The latest version of this license is in: |
| 12 |
# |
| 13 |
# http://www.latex-project.org/lppl.txt |
| 14 |
# |
| 15 |
# and version 1.3a or later is part of all distributions of LaTeX |
| 16 |
# version 2004/10/01 or later. |
| 17 |
# |
| 18 |
|
| 19 |
PACKAGE=seuthesis |
| 20 |
SRC=${PACKAGE}.ins ${PACKAGE}.dtx |
| 21 |
|
| 22 |
MAIN=main |
| 23 |
MAIN_SRC=${MAIN}.tex content/*.tex content/reference.bib |
| 24 |
|
| 25 |
all: package |
| 26 |
|
| 27 |
main: main.pdf |
| 28 |
|
| 29 |
sample: sample.pdf |
| 30 |
|
| 31 |
package: ${PACKAGE}.pdf |
| 32 |
|
| 33 |
clean: |
| 34 |
rm -f *.aux *.log *.toc *.ind *.inx *.gls *.glo *.idx *.ilg *.out *.bak *.bbl *.brf *.blg *.dvi *.ps |
| 35 |
|
| 36 |
distclean: clean |
| 37 |
rm -f *.cls *.cfg |
| 38 |
|
| 39 |
${PACKAGE}.cls: ${SRC} |
| 40 |
rm -f ${PACKAGE}.cls ${PACKAGE}-gbk.cfg ${PACKAGE}-utf8.cfg |
| 41 |
latex ${PACKAGE}.ins |
| 42 |
iconv -f utf8 -t gbk ${PACKAGE}-utf8.cfg > ${PACKAGE}-gbk.cfg |
| 43 |
|
| 44 |
${PACKAGE}.idx: ${PACKAGE}.dtx |
| 45 |
xelatex ${PACKAGE}.dtx |
| 46 |
|
| 47 |
${PACKAGE}.bbl: ${PACKAGE}.dtx ${PACKAGE}.bib |
| 48 |
xelatex ${PACKAGE}.dtx |
| 49 |
bibtex ${PACKAGE} |
| 50 |
|
| 51 |
${PACKAGE}.ind: ${PACKAGE}.idx |
| 52 |
makeindex -s gind ${PACKAGE} |
| 53 |
# makeindex -s gglo -o ${PACKAGE}.gls ${PACKAGE}.glo |
| 54 |
|
| 55 |
${PACKAGE}.pdf: ${PACKAGE}.dtx ${PACKAGE}.cls ${PACKAGE}.ind ${PACKAGE}.bbl |
| 56 |
xelatex ${PACKAGE}.dtx |
| 57 |
xelatex ${PACKAGE}.dtx |
| 58 |
|
| 59 |
sample.bbl: seuthesis.bib sample.tex |
| 60 |
xelatex sample |
| 61 |
bibtex sample |
| 62 |
|
| 63 |
sample.pdf: sample.tex ${PACKAGE}.cls sample.bbl |
| 64 |
xelatex sample |
| 65 |
xelatex sample |
| 66 |
|
| 67 |
# rules of making main (my thesis) |
| 68 |
main.bbl: main.tex content/reference.bib |
| 69 |
xelatex main |
| 70 |
bibtex -min-crossrefs=9000 main |
| 71 |
|
| 72 |
main.pdf: ${MAIN_SRC} ${PACKAGE}.cls main.bbl |
| 73 |
xelatex main |
| 74 |
xelatex main |