]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/Makefile
Merge fixes from CUPS 1.4svn-r7555.
[thirdparty/cups.git] / conf / Makefile
CommitLineData
ef416fc2 1#
bc44d920 2# "$Id: Makefile 6649 2007-07-11 21:46:42Z 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
33#
34# Clean all config and object files...
35#
36
37clean:
38
39
757d2cad 40#
41# Dummy depend...
42#
43
44depend:
45
46
ef416fc2 47#
50fe7201 48# Install all targets...
ef416fc2 49#
50
50fe7201
MS
51install: all install-data install-headers install-libs install-exec
52
53
54#
55# Install data files...
56#
57
58install-data:
bd7854cb 59 $(INSTALL_DIR) -m 755 $(SERVERROOT)
ef416fc2 60 for file in $(KEEP); do \
61 if test -r $(SERVERROOT)/$$file ; then \
09ec0018 62 $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \
bd7854cb 63 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file.N || true; \
ef416fc2 64 else \
09ec0018 65 $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
bd7854cb 66 chgrp $(CUPS_GROUP) $(SERVERROOT)/$$file || true; \
ef416fc2 67 fi ; \
68 done
09ec0018 69 $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default
bd7854cb 70 -chgrp $(CUPS_GROUP) $(SERVERROOT)/cupsd.conf.default
ef416fc2 71 for file in $(REPLACE); do \
72 if test -r $(SERVERROOT)/$$file ; then \
73 $(MV) $(SERVERROOT)/$$file $(SERVERROOT)/$$file.O ; \
74 fi ; \
89d46774 75 $(INSTALL_DATA) $$file $(SERVERROOT) ; \
ef416fc2 76 done
b423cd4c 77 -if test x$(PAMDIR) != x; then \
78 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
79 if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \
80 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
ef416fc2 81 else \
b423cd4c 82 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ef416fc2 83 fi ; \
84 fi
85
86
50fe7201
MS
87#
88# Install programs...
89#
90
91install-exec:
92
93
94#
95# Install headers...
96#
97
98install-headers:
99
100
101#
102# Install libraries...
103#
104
105install-libs:
106
107
ef416fc2 108#
757d2cad 109# Uninstall files...
110#
111
112uninstall:
113 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
114 $(RM) $(SERVERROOT)/$$file; \
115 done
116 -$(RMDIR) $(SERVERROOT)
117 -if test x$(PAMDIR) != x; then \
118 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
119 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
120 fi
121
122
123#
bc44d920 124# End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 125#