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