2 # "$Id: Makefile 5193 2006-02-27 20:27:07Z mike $"
4 # Locale file makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2006 by Easy Software Products.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
42 # Clean all config and object files...
46 $(RM
) translate translate.o
50 # Update dependencies...
61 $(INSTALL_DIR
) -m
755 $(LOCALEDIR
)
62 for loc in
$(LOCALES
) ; do \
63 $(INSTALL_DIR
) -m
755 $(LOCALEDIR
)/$$loc ; \
64 $(INSTALL_DATA
) cups_
$$loc.po
$(LOCALEDIR
)/$$loc/cups_
$$loc.po
; \
69 # pot - Creates/updates the cups.pot template file, and merges changes
70 # into existing message catalogs.
74 echo Updating cups.pot...
75 cd ..
; xgettext
-o locale
/cups.pot
-j
--keyword
=_
--no-wrap \
76 --copyright-holder
="Easy Software Products" \
77 --msgid-bugs-address
="http://www.cups.org/str.php" \
80 tail
+6 cups.pot | sed
-e
'1,$$s/PACKAGE VERSION/CUPS 1.2/' \
81 -e
'1,$$s/charset=CHARSET/charset=utf-8/'; \
82 cat cups.footer
) > cups.pot.N
83 mv cups.pot.N cups.pot
84 for loc in
$(LOCALES
) ; do \
85 echo Merging changes into cups_
$$loc.po...
; \
86 msgmerge
-o cups_
$$loc.po cups_
$$loc.po cups.pot
; \
91 # translate - A simple utility which uses Google to translate the cups.pot
92 # file to one of several languages.
94 # translate outfile language
97 translate
: translate.o ..
/cups
/$(LIBCUPS
)
99 $(CC
) $(LDFLAGS
) -o translate translate.o
$(LIBS
)
101 translate.o
: ..
/cups
/http.h ..
/cups
/i18n.h ..
/cups
/language.h ..
/cups
/string.h
105 # End of "$Id: Makefile 5193 2006-02-27 20:27:07Z mike $".