]> git.ipfire.org Git - thirdparty/cups.git/blob - templates/Makefile
Merge changes from CUPS 1.4svn-r7961.
[thirdparty/cups.git] / templates / Makefile
1 #
2 # "$Id: Makefile 7940 2008-09-16 00:45:16Z mike $"
3 #
4 # Template makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1993-2007 by Easy Software Products.
8 #
9 # These coded instructions, statements, and computer programs are the
10 # property of Apple Inc. and are protected by Federal copyright
11 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 # which should have been included with this file. If this file is
13 # file is missing or damaged, see the license at "http://www.cups.org/".
14 #
15
16 include ../Makedefs
17
18 #
19 # Template files...
20 #
21
22 FILES = \
23 add-class.tmpl \
24 add-printer.tmpl \
25 add-rss-subscription.tmpl \
26 admin.tmpl \
27 choose-device.tmpl \
28 choose-make.tmpl \
29 choose-model.tmpl \
30 choose-serial.tmpl \
31 choose-uri.tmpl \
32 class.tmpl \
33 class-added.tmpl \
34 class-confirm.tmpl \
35 class-deleted.tmpl \
36 class-jobs-header.tmpl \
37 class-modified.tmpl \
38 classes.tmpl \
39 classes-header.tmpl \
40 edit-config.tmpl \
41 error.tmpl \
42 error-op.tmpl \
43 header.tmpl \
44 help-header.tmpl \
45 help-trailer.tmpl \
46 help-printable.tmpl \
47 job-cancel.tmpl \
48 job-hold.tmpl \
49 job-move.tmpl \
50 job-moved.tmpl \
51 job-release.tmpl \
52 job-restart.tmpl \
53 jobs.tmpl \
54 jobs-header.tmpl \
55 list-available-printers.tmpl \
56 maintenance.tmpl \
57 modify-class.tmpl \
58 modify-printer.tmpl \
59 norestart.tmpl \
60 option-boolean.tmpl \
61 option-conflict.tmpl \
62 option-header.tmpl \
63 option-pickmany.tmpl \
64 option-pickone.tmpl \
65 option-trailer.tmpl \
66 pager.tmpl \
67 printer.tmpl \
68 printer-accept.tmpl \
69 printer-added.tmpl \
70 printer-configured.tmpl \
71 printer-confirm.tmpl \
72 printer-default.tmpl \
73 printer-deleted.tmpl \
74 printer-jobs-header.tmpl \
75 printer-modified.tmpl \
76 printer-purge.tmpl \
77 printer-reject.tmpl \
78 printer-start.tmpl \
79 printer-stop.tmpl \
80 printers.tmpl \
81 printers-header.tmpl \
82 restart.tmpl \
83 samba-export.tmpl \
84 samba-exported.tmpl \
85 search.tmpl \
86 set-printer-options-header.tmpl \
87 set-printer-options-trailer.tmpl \
88 subscription-added.tmpl \
89 subscription-canceled.tmpl \
90 test-page.tmpl \
91 trailer.tmpl \
92 users.tmpl
93
94
95 #
96 # Make everything...
97 #
98
99 all:
100
101
102 #
103 # Make library targets...
104 #
105
106 libs:
107
108
109 #
110 # Make unit tests...
111 #
112
113 unittests:
114
115
116 #
117 # Clean all config and object files...
118 #
119
120 clean:
121
122
123 #
124 # Dummy depend...
125 #
126
127 depend:
128
129
130 #
131 # Install all targets...
132 #
133
134 install: all install-data install-headers install-libs install-exec
135
136
137 #
138 # Install data files...
139 #
140
141 install-data: $(INSTALL_LANGUAGES)
142 $(INSTALL_DIR) -m 755 $(DATADIR)/templates
143 for file in $(FILES); do \
144 $(INSTALL_DATA) $$file $(DATADIR)/templates; \
145 done
146
147 install-languages:
148 for lang in $(LANGUAGES); do \
149 if test -d $$lang; then \
150 $(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \
151 for file in $(FILES); do \
152 $(INSTALL_DATA) $$lang/$$file $(DATADIR)/templates/$$lang 2>/dev/null || true; \
153 done \
154 fi \
155 done
156
157
158
159 #
160 # Install programs...
161 #
162
163 install-exec:
164
165
166 #
167 # Install headers...
168 #
169
170 install-headers:
171
172
173 #
174 # Install libraries...
175 #
176
177 install-libs:
178
179
180 #
181 # Uninstall files...
182 #
183
184 uninstall: $(UNINSTALL_LANGUAGES)
185 for file in $(FILES); do \
186 $(RM) $(DATADIR)/templates/$$file; \
187 done
188 -$(RMDIR) $(DATADIR)/templates
189
190 uninstall-languages:
191 for lang in $(LANGUAGES); do \
192 for file in $(FILES); do \
193 $(RM) $(DATADIR)/templates/$$lang/$$file; \
194 done \
195 $(RMDIR) $(DATADIR)/templates/$$lang; \
196 done
197
198
199 #
200 # End of "$Id: Makefile 7940 2008-09-16 00:45:16Z mike $".
201 #