1# doc/<locale>/Makefile.am for Blackbox - an X11 Window manager 2 3# what locale is this 4locale = sl_SI 5 6# where to install 7locale_mandir = $(DESTDIR)$(mandir)/$(locale)/man1 8 9# what to install 10manfiles = blackbox.1 11 12# which files need processing during 'make' 13all-local: blackbox.1 14 15CLEANFILES = blackbox.1 16MAINTAINERCLEANFILES = Makefile.in 17 18NLSTEST = @NLS@ 19DEFAULT_MENU=$(pkgdatadir)/menu 20 21distclean-local: 22 rm -f *\~ .\#* 23 24blackbox.1: blackbox.1.in 25 @regex_cmd@ -e "s,@defaultmenu@,$(DEFAULT_MENU)," \ 26 -e "s,@pkgdatadir@,$(pkgdatadir)," \ 27 -e "s,@version@,$(VERSION)," \ 28 @srcdir@/blackbox.1.in > blackbox.1 29 30install-data-local: all-local 31 @if test x$(NLSTEST) = "x-DNLS"; then \ 32 echo "Installing manual pages for $(locale)"; \ 33 $(mkinstalldirs) $(locale_mandir); \ 34 $(INSTALL_DATA) $(manfiles) $(locale_mandir); \ 35 fi 36 37uninstall-local: 38 @if test x$(NLSTEST) = "x-DNLS"; then \ 39 for i in $(manfiles); do \ 40 rm -f $(locale_mandir)/$$i; \ 41 done; \ 42 fi 43