2 # Configuration file makefile for CUPS.
4 # Copyright 2007-2015 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # file is missing or damaged, see the license at "http://www.cups.org/".
20 KEEP
= cups-files.conf cupsd.conf snmp.conf
21 REPLACE
= mime.convs mime.types
32 # Make library targets...
46 # Clean all config and object files...
60 # Install all targets...
63 install: all install-data install-headers install-libs install-exec
67 # Install data files...
71 for file in
$(KEEP
); do \
72 if
test -r
$(SERVERROOT
)/$$file ; then \
73 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
)/$$file.N
; \
75 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
) ; \
77 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
)/$$file.default
; \
79 $(INSTALL_DIR
) -m
755 $(DATADIR
)/mime
80 for file in
$(REPLACE
); do \
81 if
test -r
$(DATADIR
)/mime
/$$file ; then \
82 $(MV
) $(DATADIR
)/mime
/$$file $(DATADIR
)/mime
/$$file.O
; \
84 if
test -r
$(SERVERROOT
)/$$file ; then \
85 $(MV
) $(SERVERROOT
)/$$file $(DATADIR
)/mime
/$$file.O
; \
87 $(INSTALL_DATA
) $$file $(DATADIR
)/mime
; \
89 -if
test x
$(PAMDIR
) != x
; then \
90 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(PAMDIR
); \
91 if
test -r
$(BUILDROOT
)$(PAMDIR
)/cups
; then \
92 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups.N
; \
94 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
100 # Install programs...
114 # Install libraries...
125 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
126 $(RM
) $(SERVERROOT
)/$$file; \
128 -$(RMDIR
) $(SERVERROOT
)
129 for file in
$(REPLACE
); do \
130 $(RM
) $(DATADIR
)/mime
/$$file; \
132 -$(RMDIR
) $(DATADIR
)/mime
133 -if
test x
$(PAMDIR
) != x
; then \
134 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
135 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \