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:
Takashi Iwai 2005-08-23 12:09:30 +00:00
parent d3267473a3
commit 37325763a5
2 changed files with 9 additions and 6 deletions

View file

@ -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:

View file

@ -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: