mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
Allow separate build and source trees
From: Bernard Leak <bernard@brenda-arkle.demon.co.uk> Allow separate build and source trees.
This commit is contained in:
parent
d3267473a3
commit
37325763a5
2 changed files with 9 additions and 6 deletions
|
@ -17,7 +17,7 @@ install-man8:
|
|||
esac; \
|
||||
$(mkinstalldirs) $(DESTDIR)$(mandir)$$loc/man$$ext; \
|
||||
echo " $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext"; \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(mandir)$$loc/man$$ext/$$inst.$$ext; \
|
||||
done
|
||||
|
||||
uninstall-man8:
|
||||
|
|
|
@ -7,6 +7,7 @@ XGETTEXT_OPTIONS = -kxmsg -kxecho
|
|||
|
||||
top_builddir = ../..
|
||||
|
||||
srcdir = @srcdir@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
prefix = @prefix@
|
||||
|
@ -33,24 +34,26 @@ all-no:
|
|||
|
||||
.SUFFIXES: .po .gmo .mo
|
||||
|
||||
.po.mo:
|
||||
%.mo : $(srcdir)/%.po
|
||||
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
|
||||
|
||||
.po.gmo:
|
||||
@lang=`echo $* | sed -e 's,.*/,,'`; \
|
||||
rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
||||
%.gmo : $(srcdir)/%.po
|
||||
@lang=`echo $(srcdir)/$* | sed -e 's,.*/,,'`; \
|
||||
rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $(srcdir)/$${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
||||
|
||||
$(DOMAIN).pot: $(GETTEXT_SRC)
|
||||
$(XGETTEXT) -o$@ --default-domain=$(DOMAIN) \
|
||||
--add-comments=TRANSLATORS: --language=Shell \
|
||||
$(XGETTEXT_OPTIONS) $<
|
||||
|
||||
check check_recursive:
|
||||
|
||||
clean:
|
||||
rm -f $(CATALOGS) $(POFILES:.po=.mo) $(DOMAIN).pot
|
||||
|
||||
update-po: $(DOMAIN).pot
|
||||
@for po in $(POFILES); do \
|
||||
$(MSGMERGE_UPDATE) $$po $(DOMAIN).pot; \
|
||||
$(MSGMERGE_UPDATE) $(srcdir)/$$po $(DOMAIN).pot; \
|
||||
done
|
||||
|
||||
install-data-no:
|
||||
|
|
Loading…
Reference in a new issue