]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $" | |
3 | # | |
4 | # Configuration file makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 2007 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 = cupsd.conf snmp.conf | |
23 | REPLACE = mime.convs mime.types | |
24 | ||
25 | ||
26 | # | |
27 | # Make everything... | |
28 | # | |
29 | ||
30 | all: | |
31 | ||
32 | ||
33 | # | |
34 | # Clean all config and object files... | |
35 | # | |
36 | ||
37 | clean: | |
38 | ||
39 | ||
40 | # | |
41 | # Dummy depend... | |
42 | # | |
43 | ||
44 | depend: | |
45 | ||
46 | ||
47 | # | |
48 | # Install files... | |
49 | # | |
50 | ||
51 | install: all | |
52 | $(INSTALL_DIR) -m 755 $(SERVERROOT) | |
53 | for file in $(KEEP); do \ | |
54 | if test -r $(SERVERROOT)/$$file ; then \ | |
55 | $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \ | |
56 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \ | |
57 | else \ | |
58 | $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \ | |
59 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \ | |
60 | fi ; \ | |
61 | done | |
62 | $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default | |
63 | -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default | |
64 | for file in $(REPLACE); do \ | |
65 | if test -r $(SERVERROOT)/$$file ; then \ | |
66 | $(MV) $(SERVERROOT)/$$file $(SERVERROOT)/$$file.O ; \ | |
67 | fi ; \ | |
68 | $(INSTALL_DATA) $$file $(SERVERROOT) ; \ | |
69 | done | |
70 | -if test x$(PAMDIR) != x; then \ | |
71 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
72 | if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \ | |
73 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ | |
74 | else \ | |
75 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ | |
76 | fi ; \ | |
77 | fi | |
78 | ||
79 | ||
80 | # | |
81 | # Uninstall files... | |
82 | # | |
83 | ||
84 | uninstall: | |
85 | for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \ | |
86 | $(RM) $(SERVERROOT)/$$file; \ | |
87 | done | |
88 | -$(RMDIR) $(SERVERROOT) | |
89 | -if test x$(PAMDIR) != x; then \ | |
90 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
91 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
92 | fi | |
93 | ||
94 | ||
95 | # | |
96 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". | |
97 | # |