Quellcode durchsuchen

Better makefile for more up-to-date PO and POT
* po/makefile: make update-po a pre-requisite of clean target so
that POT and PO files are always up-to-date

Christian Perrier vor 20 Jahren
Ursprung
Commit
66b5ba3534
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
  1. 5 0
      po/ChangeLog
  2. 2 2
      po/makefile

+ 5 - 0
po/ChangeLog

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

+ 2 - 2
po/makefile

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