From 7fb6a39a07ead5f688aa7f45004567584466156f Mon Sep 17 00:00:00 2001
From: Jonas Fonseca <jonas.fonseca@savoirfairelinux.com>
Date: Mon, 7 Dec 2009 12:33:00 -0500
Subject: [PATCH] Tweak mo clean and install targets

This ensures that .mo files are up-to-date when using `make install`.
Before you had to first run `make`.
---
 sflphone-client-gnome/po/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sflphone-client-gnome/po/Makefile.am b/sflphone-client-gnome/po/Makefile.am
index 6d2d320a9b..2f8eebd1cc 100644
--- a/sflphone-client-gnome/po/Makefile.am
+++ b/sflphone-client-gnome/po/Makefile.am
@@ -38,7 +38,7 @@ SUFFIXES=.po .mo
 .po.mo:
 	$(MSGFMT) -o $@ $<
 
-install-data-local:
+install-data-local: $(MOFILES)
 	@catalogs='$(MOFILES)'; \
 	for i in $$catalogs; do \
 		destdir=$(locale_installdir); \
@@ -58,4 +58,4 @@ uninstall-local:
 	done
 
 clean-local:
-	rm -rf *.mo
+	rm -f $(MOFILES)
-- 
GitLab