]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/Makefile
Move file, directory, user, and group configuration to a separate file
[thirdparty/cups.git] / conf / Makefile
CommitLineData
81793ce7 1#
c9d3f842 2# "$Id$"
81793ce7 3#
5b9bc2e0 4# Configuration file makefile for CUPS.
81793ce7 5#
5b9bc2e0 6# Copyright 2007-2011 by Apple Inc.
b246a60a 7# Copyright 1993-2006 by Easy Software Products.
81793ce7 8#
9# These coded instructions, statements, and computer programs are the
4e8d321f 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/".
81793ce7 14#
15
16include ../Makedefs
17
18#
19# Config files...
20#
21
6b21a4ce 22KEEP = cups-files.conf cupsd.conf snmp.conf
3b8f1c31 23REPLACE = mime.convs mime.types
81793ce7 24
82129304 25
81793ce7 26#
27# Make everything...
28#
29
30all:
31
82129304 32
afee307b 33#
34# Make library targets...
35#
36
37libs:
38
39
b741f3bf 40#
41# Make unit tests...
42#
43
44unittests:
45
46
81793ce7 47#
48# Clean all config and object files...
49#
50
51clean:
52
82129304 53
ad0f4a13 54#
55# Dummy depend...
56#
57
58depend:
59
60
81793ce7 61#
8aef698d 62# Install all targets...
81793ce7 63#
64
8aef698d 65install: all install-data install-headers install-libs install-exec
66
67
68#
69# Install data files...
70#
71
72install-data:
3b8f1c31 73 for file in $(KEEP); do \
f63a2256 74 if test -r $(SERVERROOT)/$$file ; then \
7bbfe47b 75 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \
3e7eb9bb 76 else \
7bbfe47b 77 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \
3e7eb9bb 78 fi ; \
5f82b2f5 79 done
7bbfe47b 80 $(INSTALL_CONFIG) -g $(CUPS_GROUP) cupsd.conf $(SERVERROOT)/cupsd.conf.default
5ca995ba 81 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
3b8f1c31 82 for file in $(REPLACE); do \
5ca995ba 83 if test -r $(DATADIR)/mime/$$file ; then \
84 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
85 fi ; \
f63a2256 86 if test -r $(SERVERROOT)/$$file ; then \
5ca995ba 87 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
3b8f1c31 88 fi ; \
5ca995ba 89 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
3b8f1c31 90 done
ca8e1fc2 91 -if test x$(PAMDIR) != x; then \
92 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
f9fa8438 93 if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
ca8e1fc2 94 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
ae8cef6b 95 else \
ca8e1fc2 96 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ae8cef6b 97 fi ; \
dc8a8937 98 fi
a3e17a89 99
81793ce7 100
8aef698d 101#
102# Install programs...
103#
104
105install-exec:
106
107
108#
109# Install headers...
110#
111
112install-headers:
113
114
115#
116# Install libraries...
117#
118
119install-libs:
120
121
ad0f4a13 122#
123# Uninstall files...
124#
125
126uninstall:
127 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
128 $(RM) $(SERVERROOT)/$$file; \
129 done
130 -$(RMDIR) $(SERVERROOT)
5ca995ba 131 for file in $(REPLACE); do \
132 $(RM) $(DATADIR)/mime/$$file; \
133 done
134 -$(RMDIR) $(DATADIR)/mime
ad0f4a13 135 -if test x$(PAMDIR) != x; then \
136 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
137 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
138 fi
139
140
81793ce7 141#
c9d3f842 142# End of "$Id$".
81793ce7 143#