]> git.ipfire.org Git - thirdparty/cups.git/blob - locale/Makefile
More svn:properties changes.
[thirdparty/cups.git] / locale / Makefile
1 #
2 # "$Id$"
3 #
4 # Locale file makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2006 by Easy Software Products.
7 #
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
13 # at:
14 #
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
19 #
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27
28 #
29 # Make everything...
30 #
31
32 all: translate
33
34
35 #
36 # Clean all config and object files...
37 #
38
39 clean:
40 $(RM) translate translate.o
41
42
43 #
44 # Update dependencies...
45 #
46
47 depend:
48
49
50 #
51 # Install files...
52 #
53
54 install: all
55 $(INSTALL_DIR) -m 755 $(LOCALEDIR)
56 for loc in $(LANGUAGES) ; do \
57 if test -f cups_$$loc.po; then \
58 $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
59 $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
60 fi ; \
61 done
62
63
64 #
65 # Uninstall files...
66 #
67
68 uninstall:
69 -for loc in $(LANGUAGES) ; do \
70 $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
71 $(RMDIR) $(LOCALEDIR)/$$loc ; \
72 done
73 -$(RMDIR) $(LOCALEDIR)
74
75
76 #
77 # pot - Creates/updates the cups.pot template file, and merges changes
78 # into existing message catalogs.
79 #
80
81 pot:
82 echo Updating cups.pot...
83 cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \
84 --no-location --copyright-holder="Easy Software Products" \
85 --msgid-bugs-address="http://www.cups.org/str.php" \
86 */*.c
87 (cat cups.header; \
88 tail +6 cups.pot | sed -e '1,$$s/PACKAGE VERSION/CUPS 1.2/' \
89 -e '1,$$s/charset=CHARSET/charset=utf-8/'; \
90 cat cups.footer) > cups.pot.N
91 mv cups.pot.N cups.pot
92 for loc in $(LANGUAGES) ; do \
93 echo Merging changes into cups_$$loc.po... ; \
94 msgmerge -o cups_$$loc.po --no-location cups_$$loc.po cups.pot ; \
95 done
96
97
98 #
99 # translate - A simple utility which uses Google to translate the cups.pot
100 # file to one of several languages.
101 #
102 # translate outfile language
103 #
104
105 translate: translate.o ../cups/$(LIBCUPS)
106 echo Linking $<...
107 $(CC) $(LDFLAGS) -o translate translate.o $(LIBS)
108
109 translate.o: ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h
110
111
112 #
113 # End of "$Id$".
114 #