-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
59 lines (51 loc) · 969 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Author: c275633094@gmail.com
# Date: 05-04-2018
# MusiXTeX musixdoc tutorial example makefile
## First, set the main filename = YOUR_TEX_FILE_NAME_WITHOUT_.TEX
# $ make, to run commands in this file
# $ make read, to read the pdf file
# $ make clean, to clean the inter file
filename=musicnotes
all:
latex ${filename}
musixflx ${filename}
bibtex ${filename}||true
latex ${filename}
makeindex ${filename}
latex ${filename}
latex ${filename}
dvips -e0 ${filename}
ps2pdf ${filename}.ps
-rm -f *.aux
-rm -f *.ps
-rm -f *.dvi
-rm -f *.idx
-rm -f *.ilg
-rm -f *.ind
-rm -f *.mx1
-rm -f *.mx2
-rm -f *.log
-rm -f *.toc
-rm -f *.bbl
-rm -f *.blg
-rm -f *.out
-rm -f make/bib
read:
evince ${filename}.pdf &
oread:
okular ${filename}.pdf
clean:
-rm -f *.aux
-rm -f *.ps
-rm -f *.dvi
-rm -f *.idx
-rm -f *.ilg
-rm -f *.ind
-rm -f *.mx1
-rm -f *.mx2
-rm -f *.log
-rm -f *.toc
-rm -f *.bbl
-rm -f *.blg
-rm -f *.out
-rm -f make/bib