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