File: Makefile

package info (click to toggle)
m-tx 0.55c-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 612 kB
  • ctags: 538
  • sloc: pascal: 3,370; makefile: 146; ansic: 130
file content (101 lines) | stat: -rw-r--r-- 2,864 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
PREPMX = ./prepmx
include make-target

sources = mtxdoc.tex mtxdoc.sty mtxlatex.sty mozart0.mtx mozart.mtx\
 netfirst.mtx meter.mtx notes.tex lyrics.tex mtxindex.tex\
 dertod.mtx volta.mtx title.mtx title1.mtx psalm42.mtx netsoos1.mtb \
 netsoos2.mtb borup.mtx melisma1.mtb dwoman.mtb \
 melisma2.mtb melisma3.mtb melisma4.mtb melisma5.mtb melisma6.mtb \
 dwoman.mta melisma.mta netsoos.mta kroonhom.mtx loofnou.mtx \
 viva.mtx dona.mtx sanctus.mtx halleluja.ltx kanons.ltx

examples = mozart0.tex mozart.tex netfirst.tex meter.tex \
 dertod.tex volta.tex title.tex title1.tex psalm42.tex netsoos1.tex \
 netsoos2.tex borup.tex melisma1.tex dwoman.tex \
 melisma2.tex melisma3.tex melisma4.tex melisma5.tex melisma6.tex 

halleluja_pieces = kroonhom.tex loofnou.tex

kanons_pieces = viva.tex dona.tex sanctus.tex

%.tex: %.mtx
	$(PREPMX) $* 
	pmxab $*
	rm $*.pml $*.pmx pmxaerr.dat

mtxdoc.$(target): mtxdoc.tex mtxdoc.sty $(examples)
	touch mtxdoc.mx1
	rm *.mx?
	- $(latex) mtxdoc
	musixflx mtxdoc
	makeindex mtxdoc
	- $(latex) mtxdoc
	- $(latex) mtxindex
	rm mtxdoc.log mtxdoc.idx mtxdoc.ilg mtxindex.log mtxindex.aux

%.mtx: %.mta %.mtb
	cat $*.mta $*.mtb > $*.mtx

melisma%.mtx: melisma.mta melisma%.mtb
	cat melisma.mta melisma$*.mtb > melisma$*.mtx

netsoos%.mtx: netsoos.mta netsoos%.mtb
	cat netsoos.mta netsoos$*.mtb > netsoos$*.mtx

once: mtxdoc.tex mtxdoc.sty $(examples)
	- $(latex) mtxdoc

index: mtxdoc.idx mtxindex.tex
	makeindex mtxdoc
	$(latex) mtxindex

%.$(target): %.ltx
	- rm $*.mx?; $(latex) $*.ltx; musixflx $*; $(latex) $*.ltx

kanons.$(target): kanons.ltx $(kanons_pieces)

halleluja.$(target): halleluja.ltx $(halleluja_pieces)

all: mtxdoc.$(target) kanons.$(target) halleluja.$(target) mtxindex.$(target)

config:
	@echo "Configuring mtxdoc Version `./docversion`"
	@echo "Looking for prepmx ... ../src/prepmx"
	ln -sf ../src/prepmx .
	@echo "Looking for pmxab ... `which pmxab`"
	@echo "Looking for musixflx ... `which musixflx`"
	@echo "Looking for musixtex ... `kpsewhich musixtex.tex`"
	@echo "Looking for musixlyr ... `kpsewhich musixlyr.tex`"
	@echo "Looking for $(latex) ... `which $(latex)`"

pdftarget:
	ln -sf make-pdf make-target

dvitarget:
	ln -sf make-dvi make-target
	
paperus:
	echo \\def\\paperUS{} > mypaper.tex

papera4:
	echo \\def\\paperA4{} > mypaper.tex

mtxdocus.$(target): paperus mtxdoc.$(target)
	mv mtxdoc.$(target) mtxdocus.$(target)	

mtxdoca4.$(target): papera4 mtxdoc.$(target)
	mv mtxdoc.$(target) mtxdoca4.$(target)

ps: mtxdoc.ps halleluja.ps kanons.ps mtxindex.ps

pdf: mtxdoc.pdf halleluja.pdf kanons.pdf mtxindex.pdf

support = docversion Makefile make-dvi make-pdf make-target

Dzip: 
	- @zip -ju mtxD`./docversion` $(sources) $(support) README

bare:
	rm $(examples) $(halleluja_pieces) $(kanons_pieces) *.dvi *.lj *.ps *.pdf\
     netsoos?.mtx melisma?.mtx *.mx? *.ind *.ilg *.toc *.aux *.log