mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 05:25:43 +01:00
e80b015689
The alsactl Makefile used 'sed $(SED)' which is going to failed when SED is actually set. Replaced that with '$(SED)', and a few 'sed' calls in alsaconf Makefile as well. Added AC_PROG_SED to configure to have it set. Fixes: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5363 Fixes: http://bugs.gentoo.org/show_bug.cgi?id=366587 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
SUBDIRS = init
|
|
|
|
sbin_PROGRAMS=alsactl
|
|
man_MANS=alsactl.1
|
|
if USE_XMLTO
|
|
man_MANS += alsactl_init.7
|
|
endif
|
|
EXTRA_DIST=alsactl.1 alsactl_init.xml
|
|
|
|
alsactl_SOURCES=alsactl.c state.c utils.c init_parse.c
|
|
alsactl_CFLAGS=$(AM_CFLAGS) -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\"
|
|
noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
|
|
|
|
dist_udevrules_DATA = \
|
|
90-alsa-restore.rules
|
|
|
|
if HAVE_SYSTEMD
|
|
|
|
systemdsystemunit_DATA = \
|
|
alsa-store.service \
|
|
alsa-restore.service
|
|
|
|
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 = \
|
|
$(SED) -r 's,@sbindir\@,$(sbindir),g' < $< > $@ || rm $@
|
|
|
|
alsa-store.service: alsa-store.service.in
|
|
$(edit)
|
|
|
|
alsa-restore.service: alsa-restore.service.in
|
|
$(edit)
|
|
|
|
90-alsa-restore.rules: 90-alsa-restore.rules.in
|
|
$(edit)
|
|
|
|
EXTRA_DIST += \
|
|
alsa-store.service.in \
|
|
alsa-restore.service.in \
|
|
90-alsa-restore.rules.in
|
|
|
|
CLEANFILES = \
|
|
alsa-store.service \
|
|
alsa-restore.service \
|
|
90-alsa-restore.rules
|
|
|
|
%.7: %.xml
|
|
xmlto man $?
|