]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
757d2cad | 2 | # "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $" |
ef416fc2 | 3 | # |
4 | # Locale file makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
fa73b229 | 6 | # Copyright 1993-2006 by Easy Software Products. |
ef416fc2 | 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 | ||
4744bd90 | 31 | LANGUAGES = ja |
ef416fc2 | 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 | ||
bd7854cb | 49 | # |
50 | # Update dependencies... | |
51 | # | |
52 | ||
53 | depend: | |
54 | ||
55 | ||
ef416fc2 | 56 | # |
57 | # Install files... | |
58 | # | |
59 | ||
fa73b229 | 60 | install: all |
bd7854cb | 61 | $(INSTALL_DIR) -m 755 $(LOCALEDIR) |
4744bd90 | 62 | for loc in $(LANGUAGES) ; do \ |
bd7854cb | 63 | $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \ |
64 | $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \ | |
ef416fc2 | 65 | done |
66 | ||
67 | ||
757d2cad | 68 | # |
69 | # Uninstall files... | |
70 | # | |
71 | ||
72 | uninstall: | |
73 | -for loc in $(LANGUAGES) ; do \ | |
74 | $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \ | |
75 | $(RMDIR) $(LOCALEDIR)/$$loc ; \ | |
76 | done | |
77 | -$(RMDIR) $(LOCALEDIR) | |
78 | ||
79 | ||
ef416fc2 | 80 | # |
81 | # pot - Creates/updates the cups.pot template file, and merges changes | |
82 | # into existing message catalogs. | |
83 | # | |
84 | ||
85 | pot: | |
86 | echo Updating cups.pot... | |
87 | cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \ | |
88 | --copyright-holder="Easy Software Products" \ | |
89 | --msgid-bugs-address="http://www.cups.org/str.php" \ | |
90 | */*.c | |
91 | (cat cups.header; \ | |
92 | tail +6 cups.pot | sed -e '1,$$s/PACKAGE VERSION/CUPS 1.2/' \ | |
93 | -e '1,$$s/charset=CHARSET/charset=utf-8/'; \ | |
94 | cat cups.footer) > cups.pot.N | |
95 | mv cups.pot.N cups.pot | |
4744bd90 | 96 | for loc in $(LANGUAGES) ; do \ |
ef416fc2 | 97 | echo Merging changes into cups_$$loc.po... ; \ |
98 | msgmerge -o cups_$$loc.po cups_$$loc.po cups.pot ; \ | |
99 | done | |
100 | ||
101 | ||
102 | # | |
103 | # translate - A simple utility which uses Google to translate the cups.pot | |
104 | # file to one of several languages. | |
105 | # | |
106 | # translate outfile language | |
107 | # | |
108 | ||
109 | translate: translate.o ../cups/$(LIBCUPS) | |
110 | echo Linking $<... | |
111 | $(CC) $(LDFLAGS) -o translate translate.o $(LIBS) | |
112 | ||
113 | translate.o: ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h | |
114 | ||
115 | ||
116 | # | |
757d2cad | 117 | # End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $". |
ef416fc2 | 118 | # |