]> git.ipfire.org Git - collecty.git/commitdiff
Avoid unnecessary updates of the pot file.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Aug 2012 09:40:00 +0000 (09:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Aug 2012 09:40:00 +0000 (09:40 +0000)
Makefile

index ae9f39954d0a5f45f472fde3e66ebe6c935dbc95..3c0defa6adf0dafaeddf04062788507044cc9fc6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,7 +40,10 @@ PO_FILES = $(wildcard po/*.po)
 MO_FILES = $(patsubst %.po,%.mo,$(PO_FILES))
 
 .PHONY: all
-all: $(POT_FILE) $(MO_FILES)
+all: $(MO_FILES)
+
+.PHONY: pot
+pot: $(POT_FILE)
 
 .PHONY: dist
 dist:
@@ -48,7 +51,7 @@ dist:
                > $(NAME)-$(VERSION).tar.gz
 
 .PHONY: install
-install:
+install: $(MO_FILES)
        -mkdir -pv $(PYTHON_DIR)
        cp -rvf collecty $(PYTHON_DIR)
        install -v -m 755 collectyd $(DESTDIR)$(BINDIR)
@@ -77,5 +80,5 @@ $(POT_FILE): $(TRANSLATION_FILES) Makefile
                -o $@ --add-comments --from-code=UTF-8 $(sort $^)
 
 # Compile gettext dictionaries from translation files.
-%.mo: %.po $(POT_FILE)
+%.mo: %.po
        msgfmt -o $@ $<