[gimp-help] build: fix po and other quickreference files not getting updated...



commit d6c79c9cb4cc5030fa0260655779bc0abf78e69e
Author: Jacob Boerema <jgboerema gmail com>
Date:   Wed Feb 23 15:34:41 2022 -0500

    build: fix po and other quickreference files not getting updated...
    
    when source and build dir were different
    
    (cherry picked from commit 3c71730d86463f3489c9d225020242b95bfc8b51)

 quickreference/Makefile.am | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/quickreference/Makefile.am b/quickreference/Makefile.am
index 4c273f736..635ddded0 100644
--- a/quickreference/Makefile.am
+++ b/quickreference/Makefile.am
@@ -29,7 +29,7 @@ $(srcdir)/po/gimp-keys.pot: $(srcdir)/gimp-keys.xml
        @echo Making $@; \
        $(XML2PO) $(XML2POFLAGS) $< | $(MSGUNIQ) --width=$(MSGWIDTH) - > $@
 
-po/%.po: $(srcdir)/po/gimp-keys.pot
+$(srcdir)/po/%.po: $(srcdir)/po/gimp-keys.pot
        @echo Making $@; \
        if [ -f $(top_srcdir)/po/$*/$(COMPENDIUM) ]; then \
                with_compendium="--compendium=$(top_srcdir)/po/$*/$(COMPENDIUM)"; \
@@ -41,18 +41,18 @@ po/%.po: $(srcdir)/po/gimp-keys.pot
        rm -f $@~
 
 .PHONY: pot po-% po
-pot: po/gimp-keys.pot ;
-po-%: po/%.po ;
+pot: $(srcdir)/po/gimp-keys.pot ;
+po-%: $(srcdir)/po/%.po ;
 po: $(foreach lang,$(filter-out en,$(QUICKREFERENCE_LINGUAS)),po-$(lang)) ;
 
-xml/gimp-keys-%.xml: $(srcdir)/po/%.po gimp-keys.xml
+xml/gimp-keys-%.xml: $(srcdir)/po/%.po $(srcdir)/gimp-keys.xml
        @$(MKDIR_P) xml
        @$(XML2PO) -p $< $(srcdir)/gimp-keys.xml > $@
 
 # English is a special case
 #
 .INTERMEDIATE: xml/gimp-keys-en.xml
-xml/gimp-keys-en.xml: gimp-keys.xml
+xml/gimp-keys-en.xml: $(srcdir)/gimp-keys.xml
        @$(MKDIR_P) xml; \
        cp $< $@
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]