]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
2 | # "$Id: Makefile 4898 2006-01-08 23:13:20Z mike $" | |
3 | # | |
4 | # Locale file makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 1993-2005 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 | # Locales... | |
29 | # | |
30 | ||
31 | LOCALES = fr | |
32 | ||
33 | ||
34 | # | |
35 | # Make everything... | |
36 | # | |
37 | ||
38 | all: translate | |
39 | ||
40 | ||
41 | # | |
42 | # Clean all config and object files... | |
43 | # | |
44 | ||
45 | clean: | |
46 | $(RM) translate translate.o | |
47 | ||
48 | ||
49 | # | |
50 | # Install files... | |
51 | # | |
52 | ||
53 | install: | |
54 | $(INSTALL_DIR) $(LOCALEDIR) | |
55 | for loc in $(LOCALES) ; do \ | |
56 | $(INSTALL_DIR) $(LOCALEDIR)/$$loc ; \ | |
57 | $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc ; \ | |
58 | done | |
59 | ||
60 | ||
61 | # | |
62 | # pot - Creates/updates the cups.pot template file, and merges changes | |
63 | # into existing message catalogs. | |
64 | # | |
65 | ||
66 | pot: | |
67 | echo Updating cups.pot... | |
68 | cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \ | |
69 | --copyright-holder="Easy Software Products" \ | |
70 | --msgid-bugs-address="http://www.cups.org/str.php" \ | |
71 | */*.c | |
72 | (cat cups.header; \ | |
73 | tail +6 cups.pot | sed -e '1,$$s/PACKAGE VERSION/CUPS 1.2/' \ | |
74 | -e '1,$$s/charset=CHARSET/charset=utf-8/'; \ | |
75 | cat cups.footer) > cups.pot.N | |
76 | mv cups.pot.N cups.pot | |
77 | for loc in $(LOCALES) ; do \ | |
78 | echo Merging changes into cups_$$loc.po... ; \ | |
79 | msgmerge -o cups_$$loc.po cups_$$loc.po cups.pot ; \ | |
80 | done | |
81 | ||
82 | ||
83 | # | |
84 | # translate - A simple utility which uses Google to translate the cups.pot | |
85 | # file to one of several languages. | |
86 | # | |
87 | # translate outfile language | |
88 | # | |
89 | ||
90 | translate: translate.o ../cups/$(LIBCUPS) | |
91 | echo Linking $<... | |
92 | $(CC) $(LDFLAGS) -o translate translate.o $(LIBS) | |
93 | ||
94 | translate.o: ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h | |
95 | ||
96 | ||
97 | # | |
98 | # End of "$Id: Makefile 4898 2006-01-08 23:13:20Z mike $". | |
99 | # |