--- linuxsampler/trunk/Makefile.am 2005/06/15 20:48:18 658 +++ linuxsampler/trunk/Makefile.am 2009/07/04 14:58:34 1931 @@ -3,10 +3,37 @@ SUBDIRS = man src scripts osx Artwork Documentation debian -EXTRA_DIST = Doxyfile linuxsampler.kdevelop +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = linuxsampler.pc + +EXTRA_DIST = Doxyfile.in \ + linuxsampler.pc.in \ + linuxsampler.kdevelop \ + benchmarks/gigsynth.cpp \ + benchmarks/Makefile \ + benchmarks/triang.cpp .PHONY: parser testcases +if HAVE_SQLITE3 +have_sqlite = "yes" +else +have_sqlite = "no" +endif + +if !CROSS_COMPILING +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 +endif + # generate parser with yacc parser: @cd $(srcdir)/src/network && make $@ @@ -16,3 +43,7 @@ @cd $(srcdir)/src/testcases && make linuxsamplertest tests: testcases + +docs: Doxyfile + @echo '*** Running doxygen ***' + doxygen Doxyfile