582ead62935aa8c89d395ade7b0298943c18b8eb
1 # Faustine top-level Makefile.
5 PREPROCESSOR_DIR
= $(SRC_DIR
)/preprocessor
/faust-0.9
.47mr3
6 EXAMPLES_DIR
= examples
7 SINWAVE_DIR
= $(EXAMPLES_DIR
)/sinwave
11 prefix := $(DESTDIR
)$(PREFIX
)
12 lib
:= $(wildcard lib
/*.
*)
17 $(MAKE
) -C
$(SRC_DIR
) opt
# using ocamlopt compiler (optimized)
19 .PHONY
: clean mrproper
test help
install uninstall
22 @echo
"make or make all : compiler the faustine interpreter"
23 @echo
"make clean : remove all object files"
24 @echo
"make doc : generate the documentation using ocamldoc (TODO)"
25 @echo
"make install : install the interpreter and the library files in $(prefix)/bin $(prefix)/lib/faustine"
26 @echo
"make uninstall : undo what install did"
27 @echo
"make dist : make a tar.gz file ready for distribution (TODO)"
30 @
($(MAKE
) -C
$(SRC_DIR
) clean)
34 @
($(MAKE
) -C
$(SRC_DIR
) mrproper
)
35 @
($(MAKE
) -C
$(PREPROCESSOR_DIR
) clean)
36 @
($(MAKE
) -C
$(EXAMPLES_DIR
) clean)
39 @
$(MAKE
) -C
$(SINWAVE_DIR
)
41 @echo
" You might want to check the output file with either:"
42 @echo
"audacity $(SINWAVE_DIR)/sin.wav"
43 @echo
"open $(SINWAVE_DIR)/sin.wav"
44 @echo
"octave -q --eval 'plot(wavread(\"$(SINWAVE_DIR)/sin.wav\")); pause'"
47 @
($(MAKE
) -C
$(EXAMPLES_DIR
))
50 mkdir
-p
$(prefix)/lib
/faustine
/
51 mkdir
-p
$(prefix)/bin
/
52 install $(SRC_DIR
)/faustine
$(prefix)/bin
/
53 install -m
0644 $(lib
) $(prefix)/lib
/faustine
/
56 rm -rf
$(prefix)/lib
/faustine
/
57 rm -f
$(prefix)/bin
/faustine