Fix build for srcdir != objdir.
* Makefile.in (po/$(PACKAGE).pot): Rename to ...
($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
$(srcdir).
($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
reference for input.
+2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
+
+ Fix build for srcdir != objdir.
+
+ * Makefile.in (po/$(PACKAGE).pot): Rename to ...
+ ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
+ $(srcdir).
+ ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
+ ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
+ reference for input.
+
2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
* util/grub-mkrescue.in: Use source directory direcly (without copiing
genkernsyms.sh: genkernsyms.sh.in config.status
$(SHELL) ./config.status
-po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell
- $(XGETTEXT) --from-code=utf-8 -o $@ -f $< --keyword=_
- $(XGETTEXT) --from-code=utf-8 -o $@ -f po/POTFILES-shell -j --language=Shell
+$(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell
+ cd $(srcdir) && $(XGETTEXT) --from-code=utf-8 -o $@ -f $< --keyword=_
+ cd $(srcdir) && $(XGETTEXT) --from-code=utf-8 -o $@ -f po/POTFILES-shell -j --language=Shell
-$(foreach lang, $(LINGUAS), po/$(lang).po): po/$(PACKAGE).pot
- $(MSGMERGE) -U $@ po/$(PACKAGE).pot
+$(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): po/$(PACKAGE).pot
+ $(MSGMERGE) -U $@ $^
po/%.mo: po/%.po
$(MKDIR_P) $$(dirname $@)