File: Makefile

package info (click to toggle)
abc2mtex 1.6.1-4
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 392 kB
  • ctags: 410
  • sloc: ansic: 4,052; makefile: 86; sh: 9
file content (59 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (3)
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
58
59
# you may need to change these for your system
CFLAGS	= -O2 -g -Wall
MAKE	= make
CC	= gcc
RM	= /bin/rm

TEX	= userguide music
ABC	= English Jigs Reels Strspys

install: abc2mtex sort_in search
	$(RM) -f *.o

abc2mtex: fields.o abc.o tex.o index.o
	$(CC) $(CFLAGS) -o $@ fields.o abc.o tex.o index.o

sort_in: sort_in.o index.o
	$(CC) $(CFLAGS) -o $@ sort_in.o index.o

search: search.o abc.c tex.o index.o
	$(CC) $(CFLAGS) -o $@ search.o abc.o tex.o index.o

index: *.abc
	abc2mtex -i *.abc
	sort_in

ps: $(ABC:=.ps)

tidy:
	$(RM) -f *.o index abc2mtex.log music.tex userguide.toc transpose.abc
	$(RM) -f $(TEX:=.dvi) $(TEX:=.log) $(TEX:=.ps) $(TEX:=.aux)
	$(RM) -f $(ABC:=.tex) $(ABC:=.dvi) $(ABC:=.log) $(ABC:=.ps) $(ABC:=.aux)

clean: tidy
	$(RM) -f abc2mtex sort_in search

.SUFFIXES:  .ps .dvi .tex .abc

.abc.tex:
	abc2mtex -o $*.tex $*

.abc.dvi:
	abc2mtex -o $*.tex $*
	tex $*

.abc.ps:
	abc2mtex -o $*.tex $*
	tex $*
	dvips -o $*.ps $*.dvi -D 600

.tex.dvi:
	tex $*

.tex.ps:
	tex $*
	dvips -o $*.ps $*.dvi -D 600

.dvi.ps:
	dvips -o $*.ps $*.dvi -D 600