2008-08-13 12:26:50 +02:00
|
|
|
SUBDIRS = init
|
|
|
|
|
1999-01-31 14:15:00 +01:00
|
|
|
sbin_PROGRAMS=alsactl
|
2008-10-30 11:50:17 +01:00
|
|
|
man_MANS=alsactl.1
|
|
|
|
if USE_XMLTO
|
|
|
|
man_MANS += alsactl_init.7
|
|
|
|
endif
|
2008-07-31 15:45:08 +02:00
|
|
|
EXTRA_DIST=alsactl.1 alsactl_init.xml
|
1999-01-30 20:12:34 +01:00
|
|
|
|
2019-12-03 13:53:25 +01:00
|
|
|
AM_CFLAGS = -D_GNU_SOURCE
|
|
|
|
|
2020-05-14 17:12:08 +02:00
|
|
|
alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c init_ucm.c \
|
2022-05-09 09:34:22 +02:00
|
|
|
daemon.c monitor.c clean.c info.c
|
2014-05-07 09:19:36 +02:00
|
|
|
|
|
|
|
alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU \
|
|
|
|
-DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" \
|
2022-02-02 15:31:33 +01:00
|
|
|
-DSYS_LOCKPATH=\"$(ASOUND_LOCK_DIR)\" \
|
|
|
|
-DSYS_LOCKFILE=\"asound.state.lock\" \
|
2014-05-07 09:19:36 +02:00
|
|
|
-DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
|
|
|
|
|
|
|
|
noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c \
|
|
|
|
init_utils_run.c init_sysfs.c
|
2008-07-31 15:45:08 +02:00
|
|
|
|
2013-05-27 09:26:39 +02:00
|
|
|
udevrules_DATA = \
|
|
|
|
90-alsa-restore.rules
|
|
|
|
|
2010-11-23 01:45:08 +01:00
|
|
|
if HAVE_SYSTEMD
|
|
|
|
|
|
|
|
systemdsystemunit_DATA = \
|
2013-04-10 10:23:16 +02:00
|
|
|
alsa-state.service \
|
2015-09-29 17:26:34 +02:00
|
|
|
alsa-restore.service
|
2010-11-23 01:45:08 +01:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
$(MKDIR_P) -m 0755 \
|
2017-09-26 20:36:12 +02:00
|
|
|
$(DESTDIR)$(systemdsystemunitdir)/sound.target.wants
|
|
|
|
( cd $(DESTDIR)$(systemdsystemunitdir)/sound.target.wants && \
|
2013-04-10 10:23:16 +02:00
|
|
|
rm -f alsa-state.service alsa-restore.service && \
|
|
|
|
$(LN_S) ../alsa-state.service alsa-state.service && \
|
|
|
|
$(LN_S) ../alsa-restore.service alsa-restore.service)
|
2010-11-23 01:45:08 +01:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
edit = \
|
2013-04-10 11:08:47 +02:00
|
|
|
$(SED) -r -e 's,@sbindir\@,$(sbindir),g' \
|
2014-06-13 11:31:44 +02:00
|
|
|
-e 's,@mydatadir\@,$(mydatadir),g' \
|
2013-04-10 11:08:47 +02:00
|
|
|
-e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
|
2017-12-12 14:32:34 +01:00
|
|
|
-e 's,@asoundrcfile\@,$(ASOUND_STATE_DIR)/asound.state,g' \
|
2013-04-10 11:08:47 +02:00
|
|
|
< $< > $@ || rm $@
|
2010-11-23 01:45:08 +01:00
|
|
|
|
2013-04-08 14:49:31 +02:00
|
|
|
alsa-state.service: alsa-state.service.in
|
2010-11-23 01:45:08 +01:00
|
|
|
$(edit)
|
|
|
|
|
2013-04-10 10:23:16 +02:00
|
|
|
alsa-restore.service: alsa-restore.service.in
|
|
|
|
$(edit)
|
|
|
|
|
2010-11-23 01:45:08 +01:00
|
|
|
90-alsa-restore.rules: 90-alsa-restore.rules.in
|
|
|
|
$(edit)
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2013-04-08 14:49:31 +02:00
|
|
|
alsa-state.service.in \
|
2013-04-10 10:23:16 +02:00
|
|
|
alsa-restore.service.in \
|
2010-11-23 01:45:08 +01:00
|
|
|
90-alsa-restore.rules.in
|
|
|
|
|
|
|
|
CLEANFILES = \
|
2013-04-08 14:49:31 +02:00
|
|
|
alsa-state.service \
|
2013-04-10 10:23:16 +02:00
|
|
|
alsa-restore.service \
|
2010-11-23 01:45:08 +01:00
|
|
|
90-alsa-restore.rules
|
|
|
|
|
2008-07-31 15:45:08 +02:00
|
|
|
%.7: %.xml
|
|
|
|
xmlto man $?
|