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