mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 20:45:42 +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>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
sbin_SCRIPTS = alsaconf
|
|
man_MANS = alsaconf.8 alsaconf.fr.8
|
|
EXTRA_DIST = $(man_MANS)
|
|
SUBDIRS = po
|
|
|
|
install-man8:
|
|
@for i in $(man_MANS); do \
|
|
ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
|
|
inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
|
|
case $$inst in \
|
|
*.[a-za-z]*)\
|
|
loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
|
|
loc="/$$loc"; \
|
|
inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
|
|
*)\
|
|
loc="";; \
|
|
esac; \
|
|
$(mkinstalldirs) $(DESTDIR)$(mandir)$$loc/man$$ext; \
|
|
echo " $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext"; \
|
|
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
|
|
done
|
|
|
|
uninstall-man8:
|
|
@for i in $(man_MANS); do \
|
|
ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
|
|
inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
|
|
case $$inst in \
|
|
*.[a-za-z]*)\
|
|
loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
|
|
loc="/$$loc"; \
|
|
inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
|
|
*)\
|
|
loc="";; \
|
|
esac; \
|
|
echo " rm -f $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext"; \
|
|
rm -f $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
|
|
done
|