]> git.ipfire.org Git - thirdparty/cups.git/blame - locale/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / locale / Makefile
CommitLineData
ef416fc2 1#
e1d6a774 2# "$Id: Makefile 5308 2006-03-18 13:18:18Z 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
25include ../Makedefs
26
ef416fc2 27
28#
29# Make everything...
30#
31
32all: translate
33
34
35#
36# Clean all config and object files...
37#
38
39clean:
40 $(RM) translate translate.o
41
42
bd7854cb 43#
44# Update dependencies...
45#
46
47depend:
48
49
ef416fc2 50#
51# Install files...
52#
53
fa73b229 54install: all
bd7854cb 55 $(INSTALL_DIR) -m 755 $(LOCALEDIR)
4744bd90 56 for loc in $(LANGUAGES) ; do \
bd7854cb 57 $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
58 $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
ef416fc2 59 done
60
61
757d2cad 62#
63# Uninstall files...
64#
65
66uninstall:
67 -for loc in $(LANGUAGES) ; do \
68 $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
69 $(RMDIR) $(LOCALEDIR)/$$loc ; \
70 done
71 -$(RMDIR) $(LOCALEDIR)
72
73
ef416fc2 74#
75# pot - Creates/updates the cups.pot template file, and merges changes
76# into existing message catalogs.
77#
78
79pot:
80 echo Updating cups.pot...
81 cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \
82 --copyright-holder="Easy Software Products" \
83 --msgid-bugs-address="http://www.cups.org/str.php" \
84 */*.c
85 (cat cups.header; \
86 tail +6 cups.pot | sed -e '1,$$s/PACKAGE VERSION/CUPS 1.2/' \
87 -e '1,$$s/charset=CHARSET/charset=utf-8/'; \
88 cat cups.footer) > cups.pot.N
89 mv cups.pot.N cups.pot
4744bd90 90 for loc in $(LANGUAGES) ; do \
ef416fc2 91 echo Merging changes into cups_$$loc.po... ; \
92 msgmerge -o cups_$$loc.po cups_$$loc.po cups.pot ; \
93 done
94
95
96#
97# translate - A simple utility which uses Google to translate the cups.pot
98# file to one of several languages.
99#
100# translate outfile language
101#
102
103translate: translate.o ../cups/$(LIBCUPS)
104 echo Linking $<...
105 $(CC) $(LDFLAGS) -o translate translate.o $(LIBS)
106
107translate.o: ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h
108
109
110#
e1d6a774 111# End of "$Id: Makefile 5308 2006-03-18 13:18:18Z mike $".
ef416fc2 112#