fixup! Do not install unused script : /usr/sbin/alsa-info
[platform/upstream/alsa-utils.git] / Makefile.am
1 AM_CPPFLAGS=-I$(top_srcdir)/include
2
3 SUBDIRS = include alsactl utils m4 po alsa-info
4 if ALSAMIXER
5 SUBDIRS += alsamixer
6 endif
7 if HAVE_MIXER
8 SUBDIRS += amixer
9 endif
10 if HAVE_RAWMIDI
11 SUBDIRS += amidi
12 endif
13 if ALSACONF
14 SUBDIRS += alsaconf
15 endif
16 if HAVE_PCM
17 SUBDIRS += aplay iecset speaker-test
18 if ALSALOOP
19 SUBDIRS += alsaloop
20 endif
21 endif
22 if HAVE_SEQ
23 SUBDIRS += seq
24 endif
25 if HAVE_UCM
26 SUBDIRS += alsaucm
27 endif
28
29 EXTRA_DIST= config.rpath  TODO gitcompile
30 AUTOMAKE_OPTIONS=foreign
31 ACLOCAL_AMFLAGS = -I m4
32
33 rpm: dist
34         $(MAKE) -C $@
35
36 dist-hook:
37         -chmod -R a+r $(distdir)
38         @if ! test -z "$(AMTAR)"; then \
39                 $(AMTAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
40         else \
41                 $(TAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
42         fi
43
44 install-data-hook:
45         $(MKDIR_P) -m 0755 $(DESTDIR)$(ASOUND_STATE_DIR)
46
47 DISTCHECK_CONFIGURE_FLAGS = \
48         --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)