Imported Upstream version 2.2.9
[platform/upstream/cups.git] / templates / Makefile
1 #
2 # Template makefile for CUPS.
3 #
4 # Copyright 2007-2017 by Apple Inc.
5 # Copyright 1993-2007 by Easy Software Products.
6 #
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
11 # missing or damaged, see the license at "http://www.cups.org/".
12 #
13
14 include ../Makedefs
15
16 #
17 # Template files...
18 #
19
20 FILES   =       \
21                 add-class.tmpl \
22                 add-printer.tmpl \
23                 add-rss-subscription.tmpl \
24                 admin.tmpl \
25                 choose-device.tmpl \
26                 choose-make.tmpl \
27                 choose-model.tmpl \
28                 choose-serial.tmpl \
29                 choose-uri.tmpl \
30                 class.tmpl \
31                 class-added.tmpl \
32                 class-confirm.tmpl \
33                 class-deleted.tmpl \
34                 class-jobs-header.tmpl \
35                 class-modified.tmpl \
36                 classes.tmpl \
37                 classes-header.tmpl \
38                 command.tmpl \
39                 edit-config.tmpl \
40                 error.tmpl \
41                 error-op.tmpl \
42                 header.tmpl \
43                 help-header.tmpl \
44                 help-trailer.tmpl \
45                 help-printable.tmpl \
46                 job-cancel.tmpl \
47                 job-hold.tmpl \
48                 job-move.tmpl \
49                 job-moved.tmpl \
50                 job-release.tmpl \
51                 job-restart.tmpl \
52                 jobs.tmpl \
53                 jobs-header.tmpl \
54                 list-available-printers.tmpl \
55                 modify-class.tmpl \
56                 modify-printer.tmpl \
57                 norestart.tmpl \
58                 option-boolean.tmpl \
59                 option-conflict.tmpl \
60                 option-header.tmpl \
61                 option-pickmany.tmpl \
62                 option-pickone.tmpl \
63                 option-trailer.tmpl \
64                 pager.tmpl \
65                 printer.tmpl \
66                 printer-accept.tmpl \
67                 printer-added.tmpl \
68                 printer-cancel-jobs.tmpl \
69                 printer-configured.tmpl \
70                 printer-confirm.tmpl \
71                 printer-default.tmpl \
72                 printer-deleted.tmpl \
73                 printer-jobs-header.tmpl \
74                 printer-modified.tmpl \
75                 printer-reject.tmpl \
76                 printer-start.tmpl \
77                 printer-stop.tmpl \
78                 printers.tmpl \
79                 printers-header.tmpl \
80                 restart.tmpl \
81                 samba-export.tmpl \
82                 samba-exported.tmpl \
83                 search.tmpl \
84                 set-printer-options-header.tmpl \
85                 set-printer-options-trailer.tmpl \
86                 subscription-added.tmpl \
87                 subscription-canceled.tmpl \
88                 test-page.tmpl \
89                 trailer.tmpl \
90                 users.tmpl
91
92
93 #
94 # Make everything...
95 #
96
97 all:
98
99
100 #
101 # Make library targets...
102 #
103
104 libs:
105
106
107 #
108 # Make unit tests...
109 #
110
111 unittests:
112
113
114 #
115 # Clean all config and object files...
116 #
117
118 clean:
119
120
121 #
122 # Dummy depend...
123 #
124
125 depend:
126
127
128 #
129 # Install all targets...
130 #
131
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)
140         $(INSTALL_DIR) -m 755 $(DATADIR)/templates
141         for file in $(FILES); do \
142                 $(INSTALL_DATA) $$file $(DATADIR)/templates; \
143         done
144
145 install-languages:
146         for lang in $(LANGUAGES); do \
147                 if test -d $$lang; then \
148                         $(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \
149                         for file in $(FILES); do \
150                                 $(INSTALL_DATA) $$lang/$$file $(DATADIR)/templates/$$lang >/dev/null 2>&1 || true; \
151                         done \
152                 fi \
153         done
154
155 install-langbundle:
156
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
179 #
180 # Uninstall files...
181 #
182
183 uninstall: $(UNINSTALL_LANGUAGES)
184         for file in $(FILES); do \
185                 $(RM) $(DATADIR)/templates/$$file; \
186         done
187         -$(RMDIR) $(DATADIR)/templates
188
189 uninstall-languages:
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
196
197 uninstall-langbundle: