wesnoth-cvs-commits
[Top][All Lists]
Advanced

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

[Wesnoth-cvs-commits] wesnoth/po Makefile.in.in


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/po Makefile.in.in
Date: Fri, 03 Sep 2004 04:30:58 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    04/09/03 08:26:10

Modified files:
        po             : Makefile.in.in 

Log message:
        fixed some po dependency handling to ease rebuilding selected files

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/po/Makefile.in.in.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: wesnoth/po/Makefile.in.in
diff -u wesnoth/po/Makefile.in.in:1.7 wesnoth/po/Makefile.in.in:1.8
--- wesnoth/po/Makefile.in.in:1.7       Fri Sep  3 07:22:57 2004
+++ wesnoth/po/Makefile.in.in   Fri Sep  3 08:26:10 2004
@@ -90,7 +90,7 @@
 # if updating the $(CATALOGS) would always touch them; however, the rule for
 # $(POFILES) has been designed to not touch files that don't need to be
 # changed.
-stamp-po: $(srcdir)/$(DOMAIN).pot
+stamp-po: $(srcdir)/*.pot
        test -z "$(GMOFILES)" || \
          for domain in `cat $(srcdir)/DOMAINS`; do \
            $(MAKE) DOMAIN=$$domain $(GMOFILES) ;\
@@ -145,9 +145,20 @@
 $(srcdir)/$(DOMAIN).pot:
        $(MAKE) $(DOMAIN).pot-update
 
+# This rule catch requests to rebuild po files whenever any pot file
+# is more recent even if that pot file is not related, but only
+# extract the textdomain, and use a recursive make call that will have
+# stricter deps and will use lang as a rule stem
+ifneq ($(NOGENERIC),1)
+%.po: *.pot
+       @domain=`basename \`dirname address@hidden; \
+       echo " make DOMAIN=$$domain NOGENERIC=1 $@"; \
+       $(MAKE) DOMAIN=$$domain NOGENERIC=1 $@
+endif
+
 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
 # Note that a PO file is not touched if it doesn't need to be changed.
-$(POFILES): $(srcdir)/$(DOMAIN).pot
+$(DOMAIN)/%.po: $(srcdir)/$(DOMAIN).pot
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
        if test -f "$(srcdir)/$(DOMAIN)/$${lang}.po"; then \
          test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]