1 |
# require automake (>= 1.5) due to 'dist-bzip2' option |
2 |
AUTOMAKE_OPTIONS = 1.5 dist-bzip2 |
3 |
|
4 |
SUBDIRS = man src scripts osx Artwork Documentation debian |
5 |
|
6 |
pkgconfigdir = $(libdir)/pkgconfig |
7 |
pkgconfig_DATA = linuxsampler.pc |
8 |
|
9 |
EXTRA_DIST = Doxyfile.in \ |
10 |
linuxsampler.pc.in \ |
11 |
linuxsampler.kdevelop \ |
12 |
benchmarks/gigsynth.cpp \ |
13 |
benchmarks/Makefile \ |
14 |
benchmarks/triang.cpp |
15 |
|
16 |
.PHONY: parser testcases |
17 |
|
18 |
if HAVE_SQLITE3 |
19 |
have_sqlite = "yes" |
20 |
else |
21 |
have_sqlite = "no" |
22 |
endif |
23 |
|
24 |
if !CROSS_COMPILING |
25 |
install-data-local: |
26 |
@if [ ! -e "$(DESTDIR)/var/lib/linuxsampler/instruments.db" -a \ |
27 |
$(have_sqlite) = "yes" ] ; then \ |
28 |
echo "****************************************************************"; \ |
29 |
echo "*** LinuxSampler was compiled with instruments DB support and"; \ |
30 |
echo "*** $(DESTDIR)/var/lib/linuxsampler/instruments.db"; \ |
31 |
echo "*** doesn't exist yet, creating it now:"; \ |
32 |
mkdir -p $(DESTDIR)/var/lib/linuxsampler && ./src/linuxsampler \ |
33 |
--create-instruments-db $(DESTDIR)/var/lib/linuxsampler/instruments.db ; \ |
34 |
fi |
35 |
endif |
36 |
|
37 |
# generate parser with yacc |
38 |
parser: |
39 |
@cd $(srcdir)/src/network && make $@ |
40 |
|
41 |
# compile test cases for the LinuxSampler codebase |
42 |
testcases: |
43 |
@cd $(srcdir)/src/testcases && make linuxsamplertest |
44 |
|
45 |
tests: testcases |
46 |
|
47 |
docs: Doxyfile |
48 |
@echo '*** Running doxygen ***' |
49 |
doxygen Doxyfile |