]> git.ipfire.org Git - thirdparty/cups.git/blob - conf/Makefile
e8f88ec882e1b99a9b676e93e180538dc79c2ef0
[thirdparty/cups.git] / conf / Makefile
1 #
2 # Configuration file makefile for CUPS.
3 #
4 # Copyright 2007-2015 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
6 #
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # missing or damaged, see the license at "http://www.cups.org/".
12 #
13
14 include ../Makedefs
15
16 #
17 # Config files...
18 #
19
20 KEEP = cups-files.conf cupsd.conf snmp.conf
21 REPLACE = mime.convs mime.types
22
23
24 #
25 # Make everything...
26 #
27
28 all:
29
30
31 #
32 # Make library targets...
33 #
34
35 libs:
36
37
38 #
39 # Make unit tests...
40 #
41
42 unittests:
43
44
45 #
46 # Clean all config and object files...
47 #
48
49 clean:
50
51
52 #
53 # Dummy depend...
54 #
55
56 depend:
57
58
59 #
60 # Install all targets...
61 #
62
63 install: all install-data install-headers install-libs install-exec
64
65
66 #
67 # Install data files...
68 #
69
70 install-data:
71 for file in $(KEEP); do \
72 if test -r $(SERVERROOT)/$$file ; then \
73 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \
74 else \
75 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \
76 fi ; \
77 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.default; \
78 done
79 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
80 for file in $(REPLACE); do \
81 if test -r $(DATADIR)/mime/$$file ; then \
82 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
83 fi ; \
84 if test -r $(SERVERROOT)/$$file ; then \
85 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
86 fi ; \
87 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
88 done
89 -if test x$(PAMDIR) != x; then \
90 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
91 if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
92 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
93 else \
94 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
95 fi ; \
96 fi
97
98
99 #
100 # Install programs...
101 #
102
103 install-exec:
104
105
106 #
107 # Install headers...
108 #
109
110 install-headers:
111
112
113 #
114 # Install libraries...
115 #
116
117 install-libs:
118
119
120 #
121 # Uninstall files...
122 #
123
124 uninstall:
125 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
126 $(RM) $(SERVERROOT)/$$file; \
127 done
128 -$(RMDIR) $(SERVERROOT)
129 for file in $(REPLACE); do \
130 $(RM) $(DATADIR)/mime/$$file; \
131 done
132 -$(RMDIR) $(DATADIR)/mime
133 -if test x$(PAMDIR) != x; then \
134 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
135 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
136 fi