]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - locale/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / locale / Makefile
index bad408908454609721bfabb1093088c2bf5e4f56..34bcf1b953f1aa5956634b87c8334cb7d0a4455a 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile 4965 2006-01-21 06:12:17Z mike $"
+# "$Id$"
 #
 #   Locale file makefile for the Common UNIX Printing System (CUPS).
 #
 
 include ../Makedefs
 
-#
-# Locales...
-#
-
-LOCALES        =       fr ja
-
 
 #
 # Make everything...
@@ -46,15 +40,38 @@ clean:
        $(RM) translate translate.o
 
 
+#
+# Update dependencies...
+#
+
+depend:
+
+
 #
 # Install files...
 #
 
-install:       all
-       $(INSTALL_DIR) $(LOCALEDIR)
-       for loc in $(LOCALES) ; do \
-               $(INSTALL_DIR) $(LOCALEDIR)/$$loc ; \
-               $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc ; \
+install:       all $(INSTALL_LANGUAGES)
+
+install-languages:
+       $(INSTALL_DIR) -m 755 $(LOCALEDIR)
+       for loc in $(LANGUAGES) ; do \
+               if test -f cups_$$loc.po; then \
+                       $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
+                       $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
+               fi ; \
+       done
+
+
+#
+# Uninstall files...
+#
+
+uninstall: $(UNINSTALL_LANGUAGES)
+
+uninstall-languages:
+       -for loc in $(LANGUAGES) ; do \
+               $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
        done
 
 
@@ -66,7 +83,7 @@ install:      all
 pot:
        echo Updating cups.pot...
        cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \
-               --copyright-holder="Easy Software Products" \
+               --no-location --copyright-holder="Easy Software Products" \
                --msgid-bugs-address="http://www.cups.org/str.php" \
                */*.c
        (cat cups.header; \
@@ -74,9 +91,9 @@ pot:
             -e '1,$$s/charset=CHARSET/charset=utf-8/'; \
         cat cups.footer) > cups.pot.N
        mv cups.pot.N cups.pot
-       for loc in $(LOCALES) ; do \
+       for loc in $(LANGUAGES) ; do \
                echo Merging changes into cups_$$loc.po... ; \
-               msgmerge -o cups_$$loc.po cups_$$loc.po cups.pot ; \
+               msgmerge -o cups_$$loc.po --no-location cups_$$loc.po cups.pot ; \
        done
 
 
@@ -95,5 +112,5 @@ translate.o: ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h
 
 
 #
-# End of "$Id: Makefile 4965 2006-01-21 06:12:17Z mike $".
+# End of "$Id$".
 #