]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/Makefile
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / conf / Makefile
CommitLineData
ef416fc2 1#
75bd9771 2# "$Id: Makefile 7670 2008-06-17 22:42:08Z mike $"
ef416fc2 3#
4# Configuration file makefile for the Common UNIX Printing System (CUPS).
5#
50fe7201 6# Copyright 2007-2008 by Apple Inc.
fa73b229 7# Copyright 1993-2006 by Easy Software Products.
ef416fc2 8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14#
15
16include ../Makedefs
17
18#
19# Config files...
20#
21
bc44d920 22KEEP = cupsd.conf snmp.conf
ef416fc2 23REPLACE = mime.convs mime.types
24
25
26#
27# Make everything...
28#
29
30all:
31
32
c9fc04c6
MS
33#
34# Make library targets...
35#
36
37libs:
38
39
5f64df29
MS
40#
41# Make unit tests...
42#
43
44unittests:
45
46
ef416fc2 47#
48# Clean all config and object files...
49#
50
51clean:
52
53
757d2cad 54#
55# Dummy depend...
56#
57
58depend:
59
60
ef416fc2 61#
50fe7201 62# Install all targets...
ef416fc2 63#
64
50fe7201
MS
65install: all install-data install-headers install-libs install-exec
66
67
68#
69# Install data files...
70#
71
72install-data:
bd7854cb 73 $(INSTALL_DIR) -m 755 $(SERVERROOT)
ef416fc2 74 for file in $(KEEP); do \
75 if test -r $(SERVERROOT)/$$file ; then \
09ec0018 76 $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \
bd7854cb 77 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \
ef416fc2 78 else \
09ec0018 79 $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
bd7854cb 80 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \
ef416fc2 81 fi ; \
82 done
09ec0018 83 $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default
bd7854cb 84 -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default
dd1abb6b 85 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
ef416fc2 86 for file in $(REPLACE); do \
dd1abb6b
MS
87 if test -r $(DATADIR)/mime/$$file ; then \
88 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
89 fi ; \
ef416fc2 90 if test -r $(SERVERROOT)/$$file ; then \
dd1abb6b 91 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
ef416fc2 92 fi ; \
dd1abb6b 93 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
ef416fc2 94 done
b423cd4c 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 ; \
ef416fc2 99 else \
b423cd4c 100 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ef416fc2 101 fi ; \
102 fi
103
104
50fe7201
MS
105#
106# Install programs...
107#
108
109install-exec:
110
111
112#
113# Install headers...
114#
115
116install-headers:
117
118
119#
120# Install libraries...
121#
122
123install-libs:
124
125
ef416fc2 126#
757d2cad 127# Uninstall files...
128#
129
130uninstall:
131 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
132 $(RM) $(SERVERROOT)/$$file; \
133 done
134 -$(RMDIR) $(SERVERROOT)
dd1abb6b
MS
135 for file in $(REPLACE); do \
136 $(RM) $(DATADIR)/mime/$$file; \
137 done
138 -$(RMDIR) $(DATADIR)/mime
757d2cad 139 -if test x$(PAMDIR) != x; then \
140 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
141 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
142 fi
143
144
145#
75bd9771 146# End of "$Id: Makefile 7670 2008-06-17 22:42:08Z mike $".
ef416fc2 147#