]> git.ipfire.org Git - thirdparty/cups.git/blob - conf/Makefile
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / conf / Makefile
1 #
2 # "$Id: Makefile 7670 2008-06-17 22:42:08Z mike $"
3 #
4 # Configuration file makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2008 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 # Make library targets...
35 #
36
37 libs:
38
39
40 #
41 # Clean all config and object files...
42 #
43
44 clean:
45
46
47 #
48 # Dummy depend...
49 #
50
51 depend:
52
53
54 #
55 # Install all targets...
56 #
57
58 install: all install-data install-headers install-libs install-exec
59
60
61 #
62 # Install data files...
63 #
64
65 install-data:
66 $(INSTALL_DIR) -m 755 $(SERVERROOT)
67 for file in $(KEEP); do \
68 if test -r $(SERVERROOT)/$$file ; then \
69 $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \
70 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \
71 else \
72 $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
73 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \
74 fi ; \
75 done
76 $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default
77 -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default
78 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
79 for file in $(REPLACE); do \
80 if test -r $(DATADIR)/mime/$$file ; then \
81 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
82 fi ; \
83 if test -r $(SERVERROOT)/$$file ; then \
84 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
85 fi ; \
86 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
87 done
88 -if test x$(PAMDIR) != x; then \
89 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
90 if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \
91 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
92 else \
93 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
94 fi ; \
95 fi
96
97
98 #
99 # Install programs...
100 #
101
102 install-exec:
103
104
105 #
106 # Install headers...
107 #
108
109 install-headers:
110
111
112 #
113 # Install libraries...
114 #
115
116 install-libs:
117
118
119 #
120 # Uninstall files...
121 #
122
123 uninstall:
124 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
125 $(RM) $(SERVERROOT)/$$file; \
126 done
127 -$(RMDIR) $(SERVERROOT)
128 for file in $(REPLACE); do \
129 $(RM) $(DATADIR)/mime/$$file; \
130 done
131 -$(RMDIR) $(DATADIR)/mime
132 -if test x$(PAMDIR) != x; then \
133 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
134 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
135 fi
136
137
138 #
139 # End of "$Id: Makefile 7670 2008-06-17 22:42:08Z mike $".
140 #