po/Makefile: s/LOCALEDIR/MODIR/g
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Mon, 24 Aug 2009 23:38:37 +0000 (23:38 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Mon, 24 Aug 2009 23:38:37 +0000 (23:38 +0000)
(The main Makefile also has a LOCALEDIR variable, with a slightly
different purpose, but both files erroneously end up using the same
definition when one is given on the command line.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3049 78b8d119-cf0a-0410-b17c-f493084dd1d7

po/Makefile

index 3a0e9f7..5c62f4f 100644 (file)
@@ -15,9 +15,9 @@ endif
 ROOT := ..
 
 DOMAIN    := neverball
-LOCALEDIR := $(ROOT)/locale
+MODIR     := $(ROOT)/locale
 POFILES   := $(LINGUAS:%=%.po)
-MOFILES   := $(LINGUAS:%=$(LOCALEDIR)/%/LC_MESSAGES/$(DOMAIN).mo)
+MOFILES   := $(LINGUAS:%=$(MODIR)/%/LC_MESSAGES/$(DOMAIN).mo)
 SOURCES   := \
     $(wildcard $(ROOT)/ball/*.[ch])  \
     $(wildcard $(ROOT)/share/*.[ch]) \
@@ -40,7 +40,7 @@ XGETTEXT_FLAGS := \
 all: $(MOFILES)
 
 clean:
-       rm -rf $(LOCALEDIR)
+       rm -rf $(MODIR)
 
 #------------------------------------------------------------------------------
 
@@ -52,7 +52,7 @@ clean:
 
 update-po: $(DOMAIN).pot-update $(POFILES) $(MOFILES)
 
-$(LOCALEDIR)/%/LC_MESSAGES/$(DOMAIN).mo: %.po
+$(MODIR)/%/LC_MESSAGES/$(DOMAIN).mo: %.po
        mkdir -p $(dir $@)
        msgfmt -c --statistics -o $@ $<
 
@@ -63,11 +63,11 @@ $(LOCALEDIR)/%/LC_MESSAGES/$(DOMAIN).mo: %.po
 $(DOMAIN).pot $(DOMAIN).pot-update:
        $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(DOMAIN).pot \
            --directory="$(ROOT)" $(SOURCES:$(ROOT)/%=%)
-       
+
        # Force encoding to UTF-8
        sed "1,/^$$/ s/CHARSET/UTF-8/" < $(DOMAIN).pot > $(DOMAIN).pot.utf8
        mv -f $(DOMAIN).pot.utf8 $(DOMAIN).pot
-       
+
        sh $(ROOT)/scripts/extractpo.sh $(ROOT) >> $(DOMAIN).pot
        grep -v '^# ' < mtrl.pot >> $(DOMAIN).pot
        msguniq -o $(DOMAIN).pot.uniq $(DOMAIN).pot