Better makefile for more up-to-date PO and POT
authorChristian Perrier <bubulle@debian.org>
Mon, 9 Jan 2006 16:45:26 +0000 (16:45 +0000)
committerChristian Perrier <bubulle@debian.org>
Mon, 9 Jan 2006 16:45:26 +0000 (16:45 +0000)
* po/makefile: make update-po a pre-requisite of clean target so
that POT and PO files are always up-to-date

po/ChangeLog
po/makefile

index 5667827..78e8ae3 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-09  Thomas Huriaux  <thomas.huriaux@gmail.com>
+
+       * makefile: make update-po a pre-requisite of clean target so
+                   that POT and PO files are always up-to-date
+
 2006-01-08  Daniel Nylander  <yeager@lidkoping.net>
 
        * sv.po: Completed to 511t. Closes: #346450
index 64573ce..45e5b1e 100644 (file)
@@ -62,7 +62,7 @@ $(MOFILES) : $(PO_DOMAINS)/%.mo : $(PO_DOMAINS)/%.po
 stats:
        for i in *.pot *.po; do echo -n "$$i: "; msgfmt --statistics $$i; done
 
-binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES) update-po
+binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES)
 
 .PHONY: update-po
 update-po: $(PACKAGE)-all.pot
@@ -74,7 +74,7 @@ update-po: $(PACKAGE)-all.pot
        done
 
 clean: clean/local
-clean/local:
+clean/local: update-po
        rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d
 
 # Include the dependencies that are available