--- linuxsampler/trunk/Makefile.am 2005/07/19 16:03:12 700 +++ linuxsampler/trunk/Makefile.am 2007/08/30 11:40:14 1312 @@ -8,10 +8,30 @@ EXTRA_DIST = Doxyfile.in \ linuxsampler.pc.in \ - linuxsampler.kdevelop + linuxsampler.kdevelop \ + benchmarks/gigsynth.cpp \ + benchmarks/Makefile \ + benchmarks/triang.cpp .PHONY: parser testcases +if HAVE_SQLITE3 +have_sqlite = "yes" +else +have_sqlite = "no" +endif + +install-data-local: + @if [ ! -e "$(DESTDIR)/var/lib/linuxsampler/instruments.db" -a \ + $(have_sqlite) = "yes" ] ; then \ + echo "****************************************************************"; \ + echo "*** LinuxSampler was compiled with instruments DB support and"; \ + echo "*** $(DESTDIR)/var/lib/linuxsampler/instruments.db"; \ + echo "*** doesn't exist yet, creating it now:"; \ + mkdir -p $(DESTDIR)/var/lib/linuxsampler && ./src/linuxsampler \ + --create-instruments-db $(DESTDIR)/var/lib/linuxsampler/instruments.db ; \ + fi + # generate parser with yacc parser: @cd $(srcdir)/src/network && make $@