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