]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
b19ccc9e | 2 | # "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $" |
ef416fc2 | 3 | # |
321d8d57 | 4 | # Configuration file makefile for CUPS. |
ef416fc2 | 5 | # |
c1420c87 | 6 | # Copyright 2007-2012 by Apple Inc. |
fa73b229 | 7 | # Copyright 1993-2006 by Easy Software Products. |
ef416fc2 | 8 | # |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
18 | # | |
19 | # Config files... | |
20 | # | |
21 | ||
c41769ff | 22 | KEEP = cups-files.conf cupsd.conf snmp.conf |
ef416fc2 | 23 | REPLACE = mime.convs mime.types |
24 | ||
25 | ||
26 | # | |
27 | # Make everything... | |
28 | # | |
29 | ||
30 | all: | |
31 | ||
32 | ||
c9fc04c6 MS |
33 | # |
34 | # Make library targets... | |
35 | # | |
36 | ||
37 | libs: | |
38 | ||
39 | ||
5f64df29 MS |
40 | # |
41 | # Make unit tests... | |
42 | # | |
43 | ||
44 | unittests: | |
45 | ||
46 | ||
ef416fc2 | 47 | # |
48 | # Clean all config and object files... | |
49 | # | |
50 | ||
51 | clean: | |
52 | ||
53 | ||
757d2cad | 54 | # |
55 | # Dummy depend... | |
56 | # | |
57 | ||
58 | depend: | |
59 | ||
60 | ||
ef416fc2 | 61 | # |
50fe7201 | 62 | # Install all targets... |
ef416fc2 | 63 | # |
64 | ||
50fe7201 MS |
65 | install: all install-data install-headers install-libs install-exec |
66 | ||
67 | ||
68 | # | |
69 | # Install data files... | |
70 | # | |
71 | ||
72 | install-data: | |
ef416fc2 | 73 | for file in $(KEEP); do \ |
74 | if test -r $(SERVERROOT)/$$file ; then \ | |
e07d4801 | 75 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \ |
ef416fc2 | 76 | else \ |
e07d4801 | 77 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \ |
ef416fc2 | 78 | fi ; \ |
79 | done | |
e07d4801 | 80 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) cupsd.conf $(SERVERROOT)/cupsd.conf.default |
dd1abb6b | 81 | $(INSTALL_DIR) -m 755 $(DATADIR)/mime |
ef416fc2 | 82 | for file in $(REPLACE); do \ |
dd1abb6b MS |
83 | if test -r $(DATADIR)/mime/$$file ; then \ |
84 | $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \ | |
85 | fi ; \ | |
ef416fc2 | 86 | if test -r $(SERVERROOT)/$$file ; then \ |
dd1abb6b | 87 | $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \ |
ef416fc2 | 88 | fi ; \ |
dd1abb6b | 89 | $(INSTALL_DATA) $$file $(DATADIR)/mime ; \ |
ef416fc2 | 90 | done |
b423cd4c | 91 | -if test x$(PAMDIR) != x; then \ |
92 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
18ecb428 | 93 | if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \ |
b423cd4c | 94 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ |
ef416fc2 | 95 | else \ |
b423cd4c | 96 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ |
ef416fc2 | 97 | fi ; \ |
98 | fi | |
99 | ||
100 | ||
50fe7201 MS |
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 | ||
ef416fc2 | 122 | # |
757d2cad | 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) | |
dd1abb6b MS |
131 | for file in $(REPLACE); do \ |
132 | $(RM) $(DATADIR)/mime/$$file; \ | |
133 | done | |
134 | -$(RMDIR) $(DATADIR)/mime | |
757d2cad | 135 | -if test x$(PAMDIR) != x; then \ |
136 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
137 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
138 | fi | |
139 | ||
140 | ||
141 | # | |
b19ccc9e | 142 | # End of "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $". |
ef416fc2 | 143 | # |