Add octave scripts for examples into track list.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / tests / mathdoc / Makefile
1 # This Makefile is mostly intended to gather all resulting faust2mathdoc pdf files into the single directory "allmathpdfs".
2 # GRAME 2009
3 # Karim Barkati
4
5
6 DSP = $(wildcard *.dsp)
7 TEX = $(wildcard *-mdoc/tex/*.tex)
8 PDF = $(wildcard *-mdoc/pdf/*.pdf)
9
10 all : mathdoc copy
11
12
13 .PHONY: all clean compile copy install mathdoc help
14
15
16 compile :
17 $(MAKE) -C ../../compiler -f Makefile.unix
18
19 install :
20 sudo $(MAKE) -C ../.. install
21 sudo $(MAKE) -C ../../tools/faust2appls install
22
23 mathdoc :
24 faust2mathdoc *.dsp
25
26 copy :
27 mkdir -p allmathdsps
28 mkdir -p allmathtexs
29 mkdir -p allmathpdfs
30 cp $(DSP) allmathdsps/
31 cp $(TEX) allmathtexs/
32 cp $(PDF) allmathpdfs/
33
34 help :
35 @echo "make or make all : compile math documentation of all examples, then copy resulting pdf files into \"allmathpdfs\" directory."
36 @echo "make clean : remove \"*-mdoc\" and \"allmath*\" directories."
37 @echo "make compile : compile the faust compiler."
38 @echo "make install : install the faust compiler and faust2appls scripts."
39 @echo "make mathdoc : generate math documentation of all examples (with faust2mathdoc)."
40 @echo "make copy : copy dsp, pdf, and tex files into \"allmathdsps\", \"allmathpdfs\", and \"allmathtexs\" directories."
41 @echo "make total : clean, compile faust, install faust and faust2appls, compile math docs, and copy files."
42
43 clean :
44 rm -rf *-mdoc
45 rm -rf allmath*
46
47 total : clean compile install mathdoc copy