annotate Makefile @ 19:7e9bd506ceae

change chapter1
author tatsuki
date Wed, 18 Feb 2015 12:26:39 +0900
parents ceeb95a12d64
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # target name
17
tatsuki
parents: 8
diff changeset
2 TARGET=main
8
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 # dependencies
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 $(TARGET).pdf : $(TARGET).dvi
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 dvipdfmx $<
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 $(TARGET).dvi : $(wildcard **/*.tex) $(TARGET).tex
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 platex $(TARGET).tex
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 platex $(TARGET).tex
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 platex $(TARGET).tex
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 # commands
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 .PHONY : clean all open remake
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 clean:
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core *.cpt
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 all: $(TARGET).pdf
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 open: $(TARGET).pdf
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 open $(TARGET).pdf
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 remake:
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 make clean
5dd2ba30983c Add Makefile
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 make all