]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
757d2cad | 2 | # "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $" |
ef416fc2 | 3 | # |
4 | # Configuration file makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
fa73b229 | 6 | # Copyright 1993-2006 by Easy Software Products. |
ef416fc2 | 7 | # |
8 | # These coded instructions, statements, and computer programs are the | |
9 | # property of Easy Software Products and are protected by Federal | |
10 | # copyright law. Distribution and use rights are outlined in the file | |
11 | # "LICENSE.txt" which should have been included with this file. If this | |
12 | # file is missing or damaged please contact Easy Software Products | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
17 | # 44141 Airport View Drive, Suite 204 | |
18 | # Hollywood, Maryland 20636 USA | |
19 | # | |
20 | # Voice: (301) 373-9600 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | include ../Makedefs | |
26 | ||
27 | # | |
28 | # Config files... | |
29 | # | |
30 | ||
757d2cad | 31 | KEEP = cupsd.conf |
ef416fc2 | 32 | REPLACE = mime.convs mime.types |
33 | ||
34 | ||
35 | # | |
36 | # Make everything... | |
37 | # | |
38 | ||
39 | all: | |
40 | ||
41 | ||
42 | # | |
43 | # Clean all config and object files... | |
44 | # | |
45 | ||
46 | clean: | |
47 | ||
48 | ||
757d2cad | 49 | # |
50 | # Dummy depend... | |
51 | # | |
52 | ||
53 | depend: | |
54 | ||
55 | ||
ef416fc2 | 56 | # |
57 | # Install files... | |
58 | # | |
59 | ||
fa73b229 | 60 | install: all |
bd7854cb | 61 | $(INSTALL_DIR) -m 755 $(SERVERROOT) |
ef416fc2 | 62 | for file in $(KEEP); do \ |
63 | if test -r $(SERVERROOT)/$$file ; then \ | |
09ec0018 | 64 | $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \ |
bd7854cb | 65 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \ |
ef416fc2 | 66 | else \ |
09ec0018 | 67 | $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \ |
bd7854cb | 68 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \ |
ef416fc2 | 69 | fi ; \ |
70 | done | |
09ec0018 | 71 | $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default |
bd7854cb | 72 | -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default |
ef416fc2 | 73 | for file in $(REPLACE); do \ |
74 | if test -r $(SERVERROOT)/$$file ; then \ | |
75 | $(MV) $(SERVERROOT)/$$file $(SERVERROOT)/$$file.O ; \ | |
76 | fi ; \ | |
09ec0018 | 77 | $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \ |
bd7854cb | 78 | chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \ |
ef416fc2 | 79 | done |
b423cd4c | 80 | -if test x$(PAMDIR) != x; then \ |
81 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
82 | if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \ | |
83 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ | |
ef416fc2 | 84 | else \ |
b423cd4c | 85 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ |
ef416fc2 | 86 | fi ; \ |
87 | fi | |
88 | ||
89 | ||
90 | # | |
757d2cad | 91 | # Uninstall files... |
92 | # | |
93 | ||
94 | uninstall: | |
95 | for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \ | |
96 | $(RM) $(SERVERROOT)/$$file; \ | |
97 | done | |
98 | -$(RMDIR) $(SERVERROOT) | |
99 | -if test x$(PAMDIR) != x; then \ | |
100 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
101 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
102 | fi | |
103 | ||
104 | ||
105 | # | |
106 | # End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $". | |
ef416fc2 | 107 | # |