• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sbin_SCRIPTS = alsaconf
2man_MANS = alsaconf.8 alsaconf.fr.8
3EXTRA_DIST = $(man_MANS)
4SUBDIRS = po
5
6install-man8:
7	@for i in $(man_MANS); do \
8	  ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
9	  inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
10	  case $$inst in \
11	  *.[a-za-z]*)\
12	    loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
13	    loc="/$$loc"; \
14	    inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
15	  *)\
16	    loc="";; \
17	  esac; \
18	  $(mkinstalldirs) $(DESTDIR)$(mandir)$$loc/man$$ext; \
19	  echo " $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext"; \
20	  $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
21	done
22
23uninstall-man8:
24	@for i in $(man_MANS); do \
25	  ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
26	  inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
27	  case $$inst in \
28	  *.[a-za-z]*)\
29	    loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
30	    loc="/$$loc"; \
31	    inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
32	  *)\
33	    loc="";; \
34	  esac; \
35	  echo " rm -f $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext"; \
36	  rm -f $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
37	done
38