]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
bc44d920 | 2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | # |
4 | # Configuration file makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
50fe7201 | 6 | # Copyright 2007-2008 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 | ||
bc44d920 | 22 | KEEP = 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 | ||
ef416fc2 | 40 | # |
41 | # Clean all config and object files... | |
42 | # | |
43 | ||
44 | clean: | |
45 | ||
46 | ||
757d2cad | 47 | # |
48 | # Dummy depend... | |
49 | # | |
50 | ||
51 | depend: | |
52 | ||
53 | ||
ef416fc2 | 54 | # |
50fe7201 | 55 | # Install all targets... |
ef416fc2 | 56 | # |
57 | ||
50fe7201 MS |
58 | install: all install-data install-headers install-libs install-exec |
59 | ||
60 | ||
61 | # | |
62 | # Install data files... | |
63 | # | |
64 | ||
65 | install-data: | |
bd7854cb | 66 | $(INSTALL_DIR) -m 755 $(SERVERROOT) |
ef416fc2 | 67 | for file in $(KEEP); do \ |
68 | if test -r $(SERVERROOT)/$$file ; then \ | |
09ec0018 | 69 | $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \ |
bd7854cb | 70 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \ |
ef416fc2 | 71 | else \ |
09ec0018 | 72 | $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \ |
bd7854cb | 73 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \ |
ef416fc2 | 74 | fi ; \ |
75 | done | |
09ec0018 | 76 | $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default |
bd7854cb | 77 | -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default |
ef416fc2 | 78 | for file in $(REPLACE); do \ |
79 | if test -r $(SERVERROOT)/$$file ; then \ | |
80 | $(MV) $(SERVERROOT)/$$file $(SERVERROOT)/$$file.O ; \ | |
81 | fi ; \ | |
89d46774 | 82 | $(INSTALL_DATA) $$file $(SERVERROOT) ; \ |
ef416fc2 | 83 | done |
b423cd4c | 84 | -if test x$(PAMDIR) != x; then \ |
85 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
86 | if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \ | |
87 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ | |
ef416fc2 | 88 | else \ |
b423cd4c | 89 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ |
ef416fc2 | 90 | fi ; \ |
91 | fi | |
92 | ||
93 | ||
50fe7201 MS |
94 | # |
95 | # Install programs... | |
96 | # | |
97 | ||
98 | install-exec: | |
99 | ||
100 | ||
101 | # | |
102 | # Install headers... | |
103 | # | |
104 | ||
105 | install-headers: | |
106 | ||
107 | ||
108 | # | |
109 | # Install libraries... | |
110 | # | |
111 | ||
112 | install-libs: | |
113 | ||
114 | ||
ef416fc2 | 115 | # |
757d2cad | 116 | # Uninstall files... |
117 | # | |
118 | ||
119 | uninstall: | |
120 | for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \ | |
121 | $(RM) $(SERVERROOT)/$$file; \ | |
122 | done | |
123 | -$(RMDIR) $(SERVERROOT) | |
124 | -if test x$(PAMDIR) != x; then \ | |
125 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
126 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
127 | fi | |
128 | ||
129 | ||
130 | # | |
bc44d920 | 131 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 132 | # |