OSDN Git Service

Android: add makefile and config.h
[android-x86/external-alsa-utils.git] / Makefile.am
index 2d4168b..20dcfc8 100644 (file)
@@ -1,24 +1,54 @@
-INCLUDES=-I$(top_srcdir)/include
-SUBDIRS1=include alsactl alsamixer amixer aplay utils
-if COND_XAMIXER2
-SUBDIRS2=$(SUBDIRS1) xamixer2
-else
-SUBDIRS2=$(SUBDIRS1)
-endif
-if COND_GAMIX
-SUBDIRS=$(SUBDIRS2) gamix
-else
-SUBDIRS=$(SUBDIRS2)
-endif
-EXTRA_DIST=ChangeLog INSTALL README configure cvscompile
+AM_CPPFLAGS=-I$(top_srcdir)/include
+
+SUBDIRS = include alsactl utils m4 po alsa-info
+if ALSAMIXER
+SUBDIRS += alsamixer
+endif
+if HAVE_MIXER
+SUBDIRS += amixer
+endif
+if HAVE_RAWMIDI
+SUBDIRS += amidi
+endif
+if ALSACONF
+SUBDIRS += alsaconf
+endif
+if HAVE_PCM
+SUBDIRS += aplay iecset speaker-test axfer
+if ALSALOOP
+SUBDIRS += alsaloop
+endif
+if BAT
+SUBDIRS += bat
+endif
+endif
+if HAVE_SEQ
+SUBDIRS += seq
+endif
+if HAVE_UCM
+SUBDIRS += alsaucm
+endif
+if HAVE_TOPOLOGY
+SUBDIRS += topology
+endif
+
+EXTRA_DIST= README.md TODO gitcompile
+AUTOMAKE_OPTIONS=foreign
+ACLOCAL_AMFLAGS = -I m4
 
 rpm: dist
        $(MAKE) -C $@
 
-pack: clean-recursive
-       rm -f config.log config.cache config.status
-       rm -rf `find . -name ".deps"`
-       chown -R root.root ../alsa-utils
-       mv ../alsa-utils ../alsa-utils-$(VERSION)
-       tar --exclude=CVS -cvz -C .. -f ../alsa-utils-$(VERSION).tar.gz alsa-utils-$(VERSION)
-       mv ../alsa-utils-$(VERSION) ../alsa-utils
+dist-hook:
+       -chmod -R a+r $(distdir)
+       @if ! test -z "$(AMTAR)"; then \
+               $(AMTAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       else \
+               $(TAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       fi
+
+install-data-hook:
+       $(MKDIR_P) -m 0755 $(DESTDIR)$(ASOUND_STATE_DIR)
+
+DISTCHECK_CONFIGURE_FLAGS = \
+        --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)