alsa-utils/alsaconf/Makefile.am
Takashi Iwai 37325763a5 Allow separate build and source trees
From: Bernard Leak <bernard@brenda-arkle.demon.co.uk>

Allow separate build and source trees.
2005-08-23 12:09:30 +00:00

38 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