4 # Configuration file makefile for CUPS.
6 # Copyright 2007-2012 by Apple Inc.
7 # Copyright 1993-2006 by Easy Software Products.
9 # These coded instructions, statements, and computer programs are the
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/".
22 KEEP
= cups-files.conf cupsd.conf snmp.conf
23 REPLACE
= mime.convs mime.types
34 # Make library targets...
48 # Clean all config and object files...
62 # Install all targets...
65 install: all install-data install-headers install-libs install-exec
69 # Install data files...
73 for file in
$(KEEP
); do \
74 if
test -r
$(SERVERROOT
)/$$file ; then \
75 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
)/$$file.N
; \
77 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
) ; \
80 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) cupsd.conf
$(SERVERROOT
)/cupsd.conf.default
81 $(INSTALL_DIR
) -m
755 $(DATADIR
)/mime
82 for file in
$(REPLACE
); do \
83 if
test -r
$(DATADIR
)/mime
/$$file ; then \
84 $(MV
) $(DATADIR
)/mime
/$$file $(DATADIR
)/mime
/$$file.O
; \
86 if
test -r
$(SERVERROOT
)/$$file ; then \
87 $(MV
) $(SERVERROOT
)/$$file $(DATADIR
)/mime
/$$file.O
; \
89 $(INSTALL_DATA
) $$file $(DATADIR
)/mime
; \
91 -if
test x
$(PAMDIR
) != x
; then \
92 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(PAMDIR
); \
93 if
test -r
$(BUILDROOT
)$(PAMDIR
)/cups
; then \
94 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups.N
; \
96 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
102 # Install programs...
116 # Install libraries...
127 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
128 $(RM
) $(SERVERROOT
)/$$file; \
130 -$(RMDIR
) $(SERVERROOT
)
131 for file in
$(REPLACE
); do \
132 $(RM
) $(DATADIR
)/mime
/$$file; \
134 -$(RMDIR
) $(DATADIR
)/mime
135 -if
test x
$(PAMDIR
) != x
; then \
136 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
137 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \