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 |
install-data-local: |
25 |
@if [ ! -e "/var/lib/linuxsampler/instruments.db" -a \ |
26 |
$(have_sqlite) = "yes" ] ; then ./scripts/create_instr_db.sh && \ |
27 |
mkdir -p /var/lib/linuxsampler && \ |
28 |
mv instruments.db /var/lib/linuxsampler ; \ |
29 |
fi |
30 |
|
31 |
# generate parser with yacc |
32 |
parser: |
33 |
@cd $(srcdir)/src/network && make $@ |
34 |
|
35 |
# compile test cases for the LinuxSampler codebase |
36 |
testcases: |
37 |
@cd $(srcdir)/src/testcases && make linuxsamplertest |
38 |
|
39 |
tests: testcases |
40 |
|
41 |
docs: Doxyfile |
42 |
@echo '*** Running doxygen ***' |
43 |
doxygen Doxyfile |