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