• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Template makefile for CUPS.
3#
4# Copyright 2007-2017 by Apple Inc.
5# Copyright 1993-2007 by Easy Software Products.
6#
7# Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
8#
9
10include ../Makedefs
11
12#
13# Template files...
14#
15
16FILES	=	\
17		add-class.tmpl \
18		add-printer.tmpl \
19		admin.tmpl \
20		choose-device.tmpl \
21		choose-make.tmpl \
22		choose-model.tmpl \
23		choose-serial.tmpl \
24		choose-uri.tmpl \
25		class.tmpl \
26		class-added.tmpl \
27		class-confirm.tmpl \
28		class-deleted.tmpl \
29		class-jobs-header.tmpl \
30		class-modified.tmpl \
31		classes.tmpl \
32		classes-header.tmpl \
33		command.tmpl \
34		edit-config.tmpl \
35		error.tmpl \
36		error-op.tmpl \
37		header.tmpl \
38		help-header.tmpl \
39		help-trailer.tmpl \
40		help-printable.tmpl \
41		job-cancel.tmpl \
42		job-hold.tmpl \
43		job-move.tmpl \
44		job-moved.tmpl \
45		job-release.tmpl \
46		job-restart.tmpl \
47		jobs.tmpl \
48		jobs-header.tmpl \
49		list-available-printers.tmpl \
50		modify-class.tmpl \
51		modify-printer.tmpl \
52		norestart.tmpl \
53		option-boolean.tmpl \
54		option-conflict.tmpl \
55		option-header.tmpl \
56		option-pickmany.tmpl \
57		option-pickone.tmpl \
58		option-trailer.tmpl \
59		pager.tmpl \
60		printer.tmpl \
61		printer-accept.tmpl \
62		printer-added.tmpl \
63		printer-cancel-jobs.tmpl \
64		printer-configured.tmpl \
65		printer-confirm.tmpl \
66		printer-default.tmpl \
67		printer-deleted.tmpl \
68		printer-jobs-header.tmpl \
69		printer-modified.tmpl \
70		printer-reject.tmpl \
71		printer-start.tmpl \
72		printer-stop.tmpl \
73		printers.tmpl \
74		printers-header.tmpl \
75		restart.tmpl \
76		search.tmpl \
77		set-printer-options-header.tmpl \
78		set-printer-options-trailer.tmpl \
79		test-page.tmpl \
80		trailer.tmpl \
81		users.tmpl
82
83
84#
85# Make everything...
86#
87
88all:
89
90
91#
92# Make library targets...
93#
94
95libs:
96
97
98#
99# Make unit tests...
100#
101
102unittests:
103
104
105#
106# Clean all config and object files...
107#
108
109clean:
110
111
112#
113# Dummy depend...
114#
115
116depend:
117
118
119#
120# Install all targets...
121#
122
123install:	all install-data install-headers install-libs install-exec
124
125
126#
127# Install data files...
128#
129
130install-data: $(INSTALL_LANGUAGES)
131	$(INSTALL_DIR) -m 755 $(DATADIR)/templates
132	for file in $(FILES); do \
133		$(INSTALL_DATA) $$file $(DATADIR)/templates; \
134	done
135
136install-languages:
137	for lang in $(LANGUAGES); do \
138		if test -d $$lang; then \
139			$(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \
140			for file in $(FILES); do \
141				$(INSTALL_DATA) $$lang/$$file $(DATADIR)/templates/$$lang >/dev/null 2>&1 || true; \
142			done \
143		fi \
144	done
145
146install-langbundle:
147
148
149#
150# Install programs...
151#
152
153install-exec:
154
155
156#
157# Install headers...
158#
159
160install-headers:
161
162
163#
164# Install libraries...
165#
166
167install-libs:
168
169
170#
171# Uninstall files...
172#
173
174uninstall: $(UNINSTALL_LANGUAGES)
175	for file in $(FILES); do \
176		$(RM) $(DATADIR)/templates/$$file; \
177	done
178	-$(RMDIR) $(DATADIR)/templates
179
180uninstall-languages:
181	for lang in $(LANGUAGES); do \
182		for file in $(FILES); do \
183			$(RM) $(DATADIR)/templates/$$lang/$$file; \
184		done \
185		$(RMDIR) $(DATADIR)/templates/$$lang; \
186	done
187
188uninstall-langbundle:
189