2 # "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $"
4 # Configuration file makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007-2008 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
= 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
) $$file $(SERVERROOT
)/$$file.N
; \
76 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file.N || true
; \
78 $(INSTALL_CONFIG
) $$file $(SERVERROOT
) ; \
79 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file || true
; \
82 $(INSTALL_CONFIG
) cupsd.conf
$(SERVERROOT
)/cupsd.conf.default
83 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/cupsd.conf.default
84 $(INSTALL_DIR
) -m
755 $(DATADIR
)/mime
85 for file in
$(REPLACE
); do \
86 if
test -r
$(DATADIR
)/mime
/$$file ; then \
87 $(MV
) $(DATADIR
)/mime
/$$file $(DATADIR
)/mime
/$$file.O
; \
89 if
test -r
$(SERVERROOT
)/$$file ; then \
90 $(MV
) $(SERVERROOT
)/$$file $(DATADIR
)/mime
/$$file.O
; \
92 $(INSTALL_DATA
) $$file $(DATADIR
)/mime
; \
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
; \
99 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
105 # Install programs...
119 # Install libraries...
130 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
131 $(RM
) $(SERVERROOT
)/$$file; \
133 -$(RMDIR
) $(SERVERROOT
)
134 for file in
$(REPLACE
); do \
135 $(RM
) $(DATADIR
)/mime
/$$file; \
137 -$(RMDIR
) $(DATADIR
)/mime
138 -if
test x
$(PAMDIR
) != x
; then \
139 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
140 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \
145 # End of "$Id: Makefile 7938 2008-09-11 23:53:59Z mike $".