]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - locale/Makefile
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / locale / Makefile
index 8b672deb5cb9c96116e4b0e366d19ebe0e9c69cf..4db478ce939186c9f9a70c1ab4d81c29a75528d1 100644 (file)
@@ -1,23 +1,17 @@
 #
-# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
+# Locale file makefile for CUPS.
 #
-#   Locale file makefile for the Common UNIX Printing System (CUPS).
+# Copyright 2007-2017 by Apple Inc.
+# Copyright 1993-2007 by Easy Software Products.
 #
-#   Copyright 2007-2008 by Apple Inc.
-#   Copyright 1993-2007 by Easy Software Products.
-#
-#   These coded instructions, statements, and computer programs are the
-#   property of Apple Inc. and are protected by Federal copyright
-#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-#   which should have been included with this file.  If this file is
-#   file is missing or damaged, see the license at "http://www.cups.org/".
+# Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
 #
 
 include ../Makedefs
 
 
-OBJS   =       checkpo.o po2strings.o strings2po.o translate.o
-TARGETS        =       checkpo po2strings strings2po translate
+OBJS   =       checkpo.o po2strings.o strings2po.o
+TARGETS        =       checkpo po2strings strings2po
 
 
 #
@@ -54,7 +48,7 @@ clean:
 #
 
 depend:
-       makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
+       $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
 
 
 #
@@ -130,19 +124,22 @@ pot:      checkpo po2strings
        echo Updating cups.pot...
        mv cups.pot cups.pot.bck
        touch cups.pot
-       cd ..; xgettext -o locale/cups.pot -s \
+       cd ..; xgettext -o locale/cups.pot -cTRANSLATORS -s \
                --keyword=_ --no-wrap \
                --copyright-holder="Apple Inc." \
-               --package-name="CUPS" --package-version="1.5" \
-               --msgid-bugs-address="http://www.cups.org/str.php" \
+               --package-name="CUPS" --package-version="$(CUPS_VERSION)" \
+               --msgid-bugs-address="https://github.com/apple/cups/issues" \
                */*.c */*.cxx
        (cat cups.header; tail +6 cups.pot; cat cups.footer) > cups.pot.N
        mv cups.pot.N cups.pot
        echo Checking cups.pot...
        ./checkpo cups.pot
-       for loc in $(LANGUAGES) ; do \
-               echo Merging changes into cups_$$loc.po... ; \
-               msgmerge -o cups_$$loc.po -s -N --no-location cups_$$loc.po cups.pot ; \
+       for loc in *.po ; do \
+               if test $$loc = '*.po'; then \
+                       break; \
+               fi; \
+               echo Merging changes into $$loc... ; \
+               msgmerge -o $$loc -s -N --no-location $$loc cups.pot ; \
        done
        echo Updating cups.strings...
        ./po2strings cups.pot cups.strings
@@ -156,64 +153,43 @@ pot:      checkpo po2strings
 #
 
 checkpo:       checkpo.o ../cups/$(LIBCUPSSTATIC)
-       echo Linking $<...
-       $(CC) $(ARCHFLAGS) $(LDFLAGS) -o checkpo checkpo.o \
+       echo Linking $@...
+       $(LD_CC) $(ARCHFLAGS) $(LDFLAGS) -o checkpo checkpo.o \
                ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
                $(COMMONLIBS) $(LIBZ)
 
 checkall:      checkpo
-       for file in *.po; do \
-               ./checkpo $$file; \
-       done
+       ./checkpo *.po *.strings
 
 
 #
 # po2strings - A simple utility which uses iconv to convert GNU gettext
-#              message catalogs to Mac OS X .strings files.
+#              message catalogs to macOS .strings files.
 #
 # po2strings filename.po filename.strings
 #
 
 po2strings:    po2strings.o ../cups/$(LIBCUPSSTATIC)
-       echo Linking $<...
-       $(CC) $(ARCHFLAGS) $(LDFLAGS) -o po2strings po2strings.o \
+       echo Linking $@...
+       $(LD_CC) $(ARCHFLAGS) $(LDFLAGS) -o po2strings po2strings.o \
                ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
                $(COMMONLIBS) $(LIBZ)
 
 
 #
-# strings2po - A simple utility which uses iconv to convert Mac OS X
-#              .strings files to GNU gettext message catalogs.
+# strings2po - A simple utility which uses iconv to convert macOS .strings files
+#              to GNU gettext message catalogs.
 #
 # strings2po filename.strings filename.po
 #
 
 strings2po:    strings2po.o
-       echo Linking $<...
-       $(CC) $(ARCHFLAGS) $(LDFLAGS) -o strings2po strings2po.o
-
-
-#
-# translate - A simple utility which uses Google to translate the cups.pot
-#             file to one of several languages.
-#
-# translate outfile language
-#
-
-translate:     translate.o ../cups/$(LIBCUPSSTATIC)
-       echo Linking $<...
-       $(CC) $(ARCHFLAGS) $(LDFLAGS) -o translate translate.o \
-               ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
-               $(COMMONLIBS) $(LIBZ)
+       echo Linking $@...
+       $(LD_CC) $(ARCHFLAGS) $(LDFLAGS) -o strings2po strings2po.o
 
 
 #
 # Dependencies...
 #
-  
-include Dependencies
 
-
-#
-# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
-#
+include Dependencies