X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile.am;h=c35131a6e3b075487582b7bbc7acd6a5d446d5b8;hb=20104ce7e73d9fc0467e0b16f1d0b614836a4f56;hp=a2ce96742189a1680a24c4d20f4e77c96348eb5f;hpb=296e0b3c3cc95a1444daabf6ab23ab8a6ede3032;p=platform%2Fupstream%2Flibvorbis.git diff --git a/Makefile.am b/Makefile.am index a2ce967..c35131a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,14 @@ ## Process this file with automake to produce Makefile.in -AUTOMAKE_OPTIONS = foreign dist-zip +AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz -SUBDIRS = lib include doc examples win32 vq +ACLOCAL_AMFLAGS = -I m4 + +SUBDIRS = m4 include vq lib test doc + +if BUILD_EXAMPLES +SUBDIRS += examples +endif m4datadir = $(datadir)/aclocal m4data_DATA = vorbis.m4 @@ -10,27 +16,29 @@ m4data_DATA = vorbis.m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = vorbis.pc vorbisenc.pc vorbisfile.pc -# we include the whole debian/ dir in EXTRA_DIST because there's a problem -# with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am -# to pick up on the lowercase changelog file and add ChangeLog to DIST_COMMON -# because of it, breaking make dist. This works just as well. EXTRA_DIST = \ - todo.txt macos macosx autogen.sh \ + CHANGES COPYING \ + 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 \ - debian + symbian \ + macosx win32 + DISTCHECK_CONFIGURE_FLAGS = --enable-docs dist-hook: - rm -rf `find $(distdir)/debian -name .svn` - rm -rf `find $(distdir)/debian -name "Makefile*"` - rm -rf `find $(distdir)/macos -name .svn` - rm -rf `find $(distdir)/macosx -name .svn` + 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@"