]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
503b54c9 | 2 | # Configuration file makefile for CUPS. |
ef416fc2 | 3 | # |
503b54c9 MS |
4 | # Copyright 2007-2015 by Apple Inc. |
5 | # Copyright 1993-2006 by Easy Software Products. | |
ef416fc2 | 6 | # |
503b54c9 MS |
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 | |
57b7b66b | 11 | # missing or damaged, see the license at "http://www.cups.org/". |
ef416fc2 | 12 | # |
13 | ||
14 | include ../Makedefs | |
15 | ||
16 | # | |
17 | # Config files... | |
18 | # | |
19 | ||
c41769ff | 20 | KEEP = cups-files.conf cupsd.conf snmp.conf |
ef416fc2 | 21 | REPLACE = mime.convs mime.types |
22 | ||
23 | ||
24 | # | |
25 | # Make everything... | |
26 | # | |
27 | ||
28 | all: | |
29 | ||
30 | ||
c9fc04c6 MS |
31 | # |
32 | # Make library targets... | |
33 | # | |
34 | ||
35 | libs: | |
36 | ||
37 | ||
5f64df29 MS |
38 | # |
39 | # Make unit tests... | |
40 | # | |
41 | ||
42 | unittests: | |
43 | ||
44 | ||
ef416fc2 | 45 | # |
46 | # Clean all config and object files... | |
47 | # | |
48 | ||
49 | clean: | |
50 | ||
51 | ||
757d2cad | 52 | # |
53 | # Dummy depend... | |
54 | # | |
55 | ||
56 | depend: | |
57 | ||
58 | ||
ef416fc2 | 59 | # |
50fe7201 | 60 | # Install all targets... |
ef416fc2 | 61 | # |
62 | ||
50fe7201 MS |
63 | install: all install-data install-headers install-libs install-exec |
64 | ||
65 | ||
66 | # | |
67 | # Install data files... | |
68 | # | |
69 | ||
70 | install-data: | |
ef416fc2 | 71 | for file in $(KEEP); do \ |
72 | if test -r $(SERVERROOT)/$$file ; then \ | |
e07d4801 | 73 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \ |
ef416fc2 | 74 | else \ |
e07d4801 | 75 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \ |
ef416fc2 | 76 | fi ; \ |
6ee8dca8 | 77 | $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.default; \ |
ef416fc2 | 78 | done |
dd1abb6b | 79 | $(INSTALL_DIR) -m 755 $(DATADIR)/mime |
ef416fc2 | 80 | for file in $(REPLACE); do \ |
dd1abb6b MS |
81 | if test -r $(DATADIR)/mime/$$file ; then \ |
82 | $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \ | |
83 | fi ; \ | |
ef416fc2 | 84 | if test -r $(SERVERROOT)/$$file ; then \ |
dd1abb6b | 85 | $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \ |
ef416fc2 | 86 | fi ; \ |
dd1abb6b | 87 | $(INSTALL_DATA) $$file $(DATADIR)/mime ; \ |
ef416fc2 | 88 | done |
b423cd4c | 89 | -if test x$(PAMDIR) != x; then \ |
90 | $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ | |
18ecb428 | 91 | if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \ |
b423cd4c | 92 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ |
ef416fc2 | 93 | else \ |
b423cd4c | 94 | $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ |
ef416fc2 | 95 | fi ; \ |
96 | fi | |
97 | ||
98 | ||
50fe7201 MS |
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 | ||
ef416fc2 | 120 | # |
757d2cad | 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) | |
dd1abb6b MS |
129 | for file in $(REPLACE); do \ |
130 | $(RM) $(DATADIR)/mime/$$file; \ | |
131 | done | |
132 | -$(RMDIR) $(DATADIR)/mime | |
757d2cad | 133 | -if test x$(PAMDIR) != x; then \ |
134 | $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ | |
135 | $(RMDIR) $(BUILDROOT)$(PAMDIR); \ | |
136 | fi |