File: Makefile

package info (click to toggle)
faust 2.81.10%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 431,496 kB
  • sloc: cpp: 283,941; ansic: 116,215; javascript: 18,529; sh: 14,356; vhdl: 14,052; java: 5,900; python: 5,091; objc: 3,852; makefile: 2,725; cs: 1,672; lisp: 1,146; ruby: 954; yacc: 586; xml: 471; lex: 247; awk: 111; tcl: 26
file content (47 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (6)
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
# This Makefile is mostly intended to gather all resulting faust2mathdoc pdf files into the single directory "allmathpdfs".
# GRAME 2009
# Karim Barkati


DSP = $(wildcard *.dsp)
TEX = $(wildcard *-mdoc/tex/*.tex)
PDF = $(wildcard *-mdoc/pdf/*.pdf)

all : mathdoc copy


.PHONY: all clean compile copy install mathdoc help


compile :
	$(MAKE) -C ../../compiler -f Makefile.unix

install :
	sudo $(MAKE) -C ../.. install
	sudo $(MAKE) -C ../../tools/faust2appls install

mathdoc :
	faust2mathdoc *.dsp

copy :
	mkdir -p allmathdsps
	mkdir -p allmathtexs
	mkdir -p allmathpdfs
	cp $(DSP) allmathdsps/
	cp $(TEX) allmathtexs/
	cp $(PDF) allmathpdfs/

help :
	@echo "make or make all : compile math documentation of all examples, then copy resulting pdf files into \"allmathpdfs\" directory."
	@echo "make clean   : remove \"*-mdoc\" and \"allmath*\" directories."
	@echo "make compile : compile the faust compiler."
	@echo "make install : install the faust compiler and faust2appls scripts."
	@echo "make mathdoc    : generate math documentation of all examples (with faust2mathdoc)."
	@echo "make copy    : copy dsp, pdf, and tex files into \"allmathdsps\", \"allmathpdfs\", and \"allmathtexs\" directories."
	@echo "make total   : clean, compile faust, install faust and faust2appls, compile math docs, and copy files."

clean :
	rm -rf *-mdoc
	rm -rf allmath*

total : clean compile install mathdoc copy