Add CMake config-file package generation
[platform/upstream/libvorbis.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
4
5 ACLOCAL_AMFLAGS = -I m4
6
7 SUBDIRS = m4 include vq lib test doc
8
9 if BUILD_EXAMPLES 
10 SUBDIRS += examples 
11 endif 
12
13 m4datadir = $(datadir)/aclocal
14 m4data_DATA = vorbis.m4
15
16 pkgconfigdir = $(libdir)/pkgconfig
17 pkgconfig_DATA = vorbis.pc vorbisenc.pc vorbisfile.pc
18
19 EXTRA_DIST = \
20         CHANGES COPYING \
21         autogen.sh \
22         libvorbis.spec libvorbis.spec.in \
23         vorbis.m4 \
24         vorbis.pc.in vorbisenc.pc.in vorbisfile.pc.in \
25         vorbis-uninstalled.pc.in \
26         vorbisenc-uninstalled.pc.in \
27         vorbisfile-uninstalled.pc.in \
28         symbian \
29         macosx win32 CMakeLists.txt cmake/FindOgg.cmake \
30         cmake/VorbisConfig.cmake.in
31
32
33 DISTCHECK_CONFIGURE_FLAGS = --enable-docs
34
35 dist-hook:
36         for item in $(EXTRA_DIST); do \
37           if test -d $$item; then \
38             echo -n "cleaning $$item dir for distribution..."; \
39             rm -rf `find $(distdir)/$$item -name .svn`; \
40             echo "OK"; \
41           fi; \
42         done
43
44 debug:
45         $(MAKE) all CFLAGS="@DEBUG@"
46
47 profile:
48         $(MAKE) all CFLAGS="@PROFILE@"