]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $" | |
3 | # | |
4 | # Configuration file makefile for CUPS. | |
5 | # | |
6 | # Copyright 2007-2012 by Apple Inc. | |
7 | # Copyright 1993-2006 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 | # Config files... | |
20 | # | |
21 | ||
22 | KEEP = cups-files.conf cupsd.conf snmp.conf | |
23 | REPLACE = mime.convs mime.types | |
24 | ||
25 | ||
26 | # | |
27 | # Make everything... | |
28 | # | |
29 | ||
30 | all: | |
31 | ||
32 | ||
33 | # | |
34 | # Make library targets... | |
35 | # | |
36 | ||
37 | libs: | |
38 | ||
39 | ||
40 | # | |
41 | # Make unit tests... | |
42 | # | |
43 | ||
44 | unittests: | |
45 | ||
46 | ||
47 | # | |
48 | # Clean all config and object files... | |
49 | # | |
50 | ||
51 | clean: | |
52 | ||
53 | ||
54 | # | |
55 | # Dummy depend... | |
56 | # | |
57 | ||
58 | depend: | |
59 | ||
60 | ||
61 | # | |
62 | # Install all targets... | |
63 | # | |
64 | ||
65 | install: all install-data install-headers install-libs install-exec | |
66 | ||
67 | ||
68 | # | |
69 | # Install data files... | |
70 | # | |
71 | ||
72 | install-data: | |
73 | for file in $(KEEP); do \ | |
74 | if test -r $(SERVERROOT)/$$file ; then \ | |
75 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \ | |
76 | else \ | |
77 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \ | |
78 | fi ; \ | |
79 | done | |
80 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) cupsd.conf $(SERVERROOT)/cupsd.conf.default | |
81 | $(INSTALL_DIR) -m 755 $(DATADIR)/mime | |
82 | for file in $(REPLACE); do \ | |
83 | if test -r $(DATADIR)/mime/$$file ; then \ | |
84 | $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \ | |
85 | fi ; \ | |
86 | if test -r $(SERVERROOT)/$$file ; then \ | |
87 | $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \ | |
88 | fi ; \ | |
89 | $(INSTALL_DATA) $$file $(DATADIR)/mime ; \ | |
90 | done | |
91 | -if test x$(PAMDIR) != x; then \ | |
92 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
93 | if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \ | |
94 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ | |
95 | else \ | |
96 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ | |
97 | fi ; \ | |
98 | fi | |
99 | ||
100 | ||
101 | # | |
102 | # Install programs... | |
103 | # | |
104 | ||
105 | install-exec: | |
106 | ||
107 | ||
108 | # | |
109 | # Install headers... | |
110 | # | |
111 | ||
112 | install-headers: | |
113 | ||
114 | ||
115 | # | |
116 | # Install libraries... | |
117 | # | |
118 | ||
119 | install-libs: | |
120 | ||
121 | ||
122 | # | |
123 | # Uninstall files... | |
124 | # | |
125 | ||
126 | uninstall: | |
127 | for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \ | |
128 | $(RM) $(SERVERROOT)/$$file; \ | |
129 | done | |
130 | -$(RMDIR) $(SERVERROOT) | |
131 | for file in $(REPLACE); do \ | |
132 | $(RM) $(DATADIR)/mime/$$file; \ | |
133 | done | |
134 | -$(RMDIR) $(DATADIR)/mime | |
135 | -if test x$(PAMDIR) != x; then \ | |
136 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
137 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
138 | fi | |
139 | ||
140 | ||
141 | # | |
142 | # End of "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $". | |
143 | # |