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
|
|
|
|
2013-04-05 11:51:51 +02:00
|
|
|
alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c
|
2013-04-10 09:42:40 +02:00
|
|
|
alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
|
2008-08-25 08:07:13 +02:00
|
|
|
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
|
|
|
|
2010-11-23 01:45:08 +01:00
|
|
|
dist_udevrules_DATA = \
|
|
|
|
90-alsa-restore.rules
|
|
|
|
|
|
|
|
if HAVE_SYSTEMD
|
|
|
|
|
|
|
|
systemdsystemunit_DATA = \
|
2013-04-08 14:49:31 +02:00
|
|
|
alsa-state.service
|
2010-11-23 01:45:08 +01:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
$(MKDIR_P) -m 0755 \
|
|
|
|
$(DESTDIR)$(systemdsystemunitdir)/basic.target.wants \
|
|
|
|
$(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants
|
|
|
|
( cd $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants && \
|
|
|
|
rm -f alsa-restore.service && \
|
|
|
|
$(LN_S) ../alsa-restore.service alsa-restore.service )
|
|
|
|
( cd $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants && \
|
|
|
|
rm -f alsa-store.service && \
|
|
|
|
$(LN_S) ../alsa-store.service alsa-store.service )
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
edit = \
|
2011-08-31 22:27:10 +02:00
|
|
|
$(SED) -r 's,@sbindir\@,$(sbindir),g' < $< > $@ || 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)
|
|
|
|
|
|
|
|
90-alsa-restore.rules: 90-alsa-restore.rules.in
|
|
|
|
$(edit)
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2013-04-08 14:49:31 +02:00
|
|
|
alsa-state.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 \
|
2010-11-23 01:45:08 +01:00
|
|
|
90-alsa-restore.rules
|
|
|
|
|
2008-07-31 15:45:08 +02:00
|
|
|
%.7: %.xml
|
|
|
|
xmlto man $?
|