summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b9615060fb6a75d4413e9f39389d195115f5b2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
if NHLT
SUBDIRS += nhlt
endif

EXTRA_DIST= README.md TODO gitcompile
AUTOMAKE_OPTIONS=foreign
ACLOCAL_AMFLAGS = -I m4

rpm: dist
	$(MAKE) -C $@

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)