6008e3ed9ba1985b1aad33bfb84661c7fe9c37aa
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / Makefile
1 version := 0.9.47mr3
2
3 DESTDIR ?=
4 PREFIX ?= /usr/local
5 CROSS=i586-mingw32msvc-
6
7 MAKEFILE := Makefile #.unix
8
9 prefix := $(DESTDIR)$(PREFIX)
10 arch := $(wildcard architecture/*.*)
11 mfiles := $(wildcard examples/Makefile.*)
12 vname := faust-$(version)-$(shell date +%y%m%d.%H%M%S)
13 zname := faust-$(version)
14
15
16 preprocessor :
17 $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix)
18
19 all :
20 $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix)
21 $(MAKE) -C architecture/osclib
22
23 win32 :
24 $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix) CXX=$(CROSS)g++
25 $(MAKE) -C architecture/osclib CXX=$(CROSS)g++ system=Win32
26
27
28 .PHONY: clean depend install ininstall dist parser help
29
30 help :
31 @echo "make or make all : compiler the faust compiler"
32 @echo "make parser : generate the parser from the lex and yacc files"
33 @echo "make clean : remove all object files"
34 @echo "make doc : generate the documentation using doxygen"
35 @echo "make install : install the compiler and the architecture files in $(prefix)/bin $(prefix)/lib/faust"
36 @echo "make uninstall : undo what install did"
37 @echo "make dist : make a tar.gz file ready for distribution"
38 @echo "make log : make a changelog file"
39 @echo "make zip : make a windows binary distribution"
40
41 parser :
42 $(MAKE) -C compiler -f $(MAKEFILE) parser
43
44 clean :
45 $(MAKE) -C compiler -f $(MAKEFILE) clean
46 $(MAKE) -C examples clean
47 $(MAKE) -C architecture/osclib clean
48 @(rm -f compiler/preprocess.a)
49
50 depend :
51 $(MAKE) -C compiler -f $(MAKEFILE) depend
52 $(MAKE) -C architecture/osclib depend
53
54
55 doc :
56 $(MAKE) -C compiler -f $(MAKEFILE) doc
57
58
59 install :
60 mkdir -p $(prefix)/lib/faust/osclib
61 mkdir -p $(prefix)/bin/
62 install compiler/faust $(prefix)/bin/
63 install -m 0644 $(arch) $(prefix)/lib/faust/
64 rm -rf $(prefix)/lib/faust/VST
65 cp -r architecture/VST $(prefix)/lib/faust/
66 rm -rf $(prefix)/lib/faust/iPhone
67 cp -r architecture/iPhone $(prefix)/lib/faust/
68 cp -r architecture/audio $(prefix)/lib/faust/
69 cp -r architecture/gui $(prefix)/lib/faust/
70 cp architecture/osclib/lib*.a $(prefix)/lib/faust/osclib
71 cp architecture/osclib/faust/include/*.h $(prefix)/lib/faust/osclib
72 find $(prefix)/lib/faust/ -name CVS | xargs rm -rf
73 install -m 0644 $(mfiles) $(prefix)/lib/faust/
74 make -C tools/faust2appls install
75
76
77 uninstall :
78 rm -rf $(prefix)/lib/faust/
79 rm -f $(prefix)/bin/faust
80
81 dist :
82 $(MAKE) -C compiler -f $(MAKEFILE) clean
83 $(MAKE) -C examples clean
84 mkdir -p faust-$(version)
85 cp README WHATSNEW COPYING Makefile faust-$(version)
86 cp -r architecture faust-$(version)
87 cp -r benchmark faust-$(version)
88 cp -r compiler faust-$(version)
89 cp -r documentation faust-$(version)
90 cp -r examples faust-$(version)
91 cp -r syntax-highlighting faust-$(version)
92 cp -r tools faust-$(version)
93 cp -r windows faust-$(version)
94 find faust-$(version) -name CVS | xargs rm -rf
95 find faust-$(version) -name "*~" | xargs rm -rf
96 find faust-$(version) -name ".#*" | xargs rm -rf
97 find faust-$(version) -name "*.o" | xargs rm -rf
98 rm -f faust-$(version).tar.gz
99 tar czfv faust-$(version).tar.gz faust-$(version)
100 rm -rf faust-$(version)
101
102 # make a faust distribution by cloning the git repository
103 clonedist :
104 git clone git://faudiostream.git.sourceforge.net/gitroot/faudiostream/faudiostream faust-$(version)
105 rm -rf faust-$(version)/.git
106 rm -f faust-$(version).tar.gz
107 tar czfv faust-$(version).tar.gz faust-$(version)
108 rm -rf faust-$(version)
109
110 archive :
111 $(MAKE) -C compiler -f $(MAKEFILE) clean
112 $(MAKE) -C examples clean
113 mkdir -p $(vname)
114 cp README COPYING Makefile $(vname)
115 cp -r architecture $(vname)
116 cp -r benchmark $(vname)
117 cp -r compiler $(vname)
118 cp -r documentation $(vname)
119 cp -r examples $(vname)
120 cp -r syntax-highlighting $(vname)
121 cp -r tools $(vname)
122 cp -r windows $(vname)
123 find $(vname) -name "*~" | xargs rm -rf
124 tar czfv $(vname).tar.gz $(vname)
125 rm -rf $(vname)
126
127 zip :
128 mkdir -p $(zname)
129 cp README COPYING Makefile $(zname)
130 cp -r architecture $(zname)
131 cp -r benchmark $(zname)
132 cp compiler/faust.exe $(zname)
133 cp -r examples $(zname)
134 cp -r documentation $(zname)
135 cp -r syntax-highlighting $(zname)
136 cp -r tools $(zname)
137 cp -r windows $(zname)
138 find $(zname) -name "*~" | xargs rm -rf
139 find $(zname) -name CVS | xargs rm -rf
140 find $(zname) -name ".#*" | xargs rm -rf
141 zip -r $(zname).zip $(zname)
142 rm -rf $(zname)
143
144 log :
145 cvs2cl --fsf
146 # DO NOT DELETE