Remove the obsolete vorbis rtp drafts.
[platform/upstream/libvorbis.git] / Makefile.am
index ea9c235..c3f58dc 100644 (file)
@@ -2,13 +2,36 @@
 
 AUTOMAKE_OPTIONS = foreign dist-zip
 
-SUBDIRS = lib include doc examples win32 debian vq
+SUBDIRS = lib include doc examples vq
 
 m4datadir = $(datadir)/aclocal
 m4data_DATA = vorbis.m4
 
-EXTRA_DIST = README AUTHORS COPYING libvorbis.spec vorbis.m4 acinclude.m4\
-       todo.txt
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = vorbis.pc vorbisenc.pc vorbisfile.pc
+
+EXTRA_DIST = \
+       CHANGES COPYING \
+       todo.txt autogen.sh \
+       libvorbis.spec libvorbis.spec.in \
+       vorbis.m4 \
+       vorbis.pc.in vorbisenc.pc.in vorbisfile.pc.in \
+       vorbis-uninstalled.pc.in \
+       vorbisenc-uninstalled.pc.in \
+       vorbisfile-uninstalled.pc.in \
+       macos macosx win32
+
+
+DISTCHECK_CONFIGURE_FLAGS = --enable-docs
+
+dist-hook:
+       for item in $(EXTRA_DIST); do \
+         if test -d $$item; then \
+           echo -n "cleaning $$item dir for distribution..."; \
+           rm -rf `find $(distdir)/$$item -name .svn`; \
+           echo "OK"; \
+         fi; \
+       done
 
 debug:
        $(MAKE) all CFLAGS="@DEBUG@"