]> git.ipfire.org Git - thirdparty/cups.git/blob - conf/Makefile
Merge changes from CUPS 1.4svn-r8329.
[thirdparty/cups.git] / conf / Makefile
1 #
2 # "$Id: Makefile 7938 2008-09-11 23:53:59Z 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 for file in $(KEEP); do \
74 if test -r $(SERVERROOT)/$$file ; then \
75 $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \
76 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \
77 else \
78 $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
79 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \
80 fi ; \
81 done
82 $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default
83 -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default
84 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
85 for file in $(REPLACE); do \
86 if test -r $(DATADIR)/mime/$$file ; then \
87 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
88 fi ; \
89 if test -r $(SERVERROOT)/$$file ; then \
90 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
91 fi ; \
92 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
93 done
94 -if test x$(PAMDIR) != x; then \
95 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
96 if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \
97 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
98 else \
99 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
100 fi ; \
101 fi
102
103
104 #
105 # Install programs...
106 #
107
108 install-exec:
109
110
111 #
112 # Install headers...
113 #
114
115 install-headers:
116
117
118 #
119 # Install libraries...
120 #
121
122 install-libs:
123
124
125 #
126 # Uninstall files...
127 #
128
129 uninstall:
130 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
131 $(RM) $(SERVERROOT)/$$file; \
132 done
133 -$(RMDIR) $(SERVERROOT)
134 for file in $(REPLACE); do \
135 $(RM) $(DATADIR)/mime/$$file; \
136 done
137 -$(RMDIR) $(DATADIR)/mime
138 -if test x$(PAMDIR) != x; then \
139 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
140 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
141 fi
142
143
144 #
145 # End of "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $".
146 #