2 # "$Id: Makefile 7670 2008-06-17 22:42:08Z 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 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
74 for file in
$(KEEP
); do \
75 if
test -r
$(SERVERROOT
)/$$file ; then \
76 $(INSTALL_CONFIG
) $$file $(SERVERROOT
)/$$file.N
; \
77 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file.N || true
; \
79 $(INSTALL_CONFIG
) $$file $(SERVERROOT
) ; \
80 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file || true
; \
83 $(INSTALL_CONFIG
) cupsd.conf
$(SERVERROOT
)/cupsd.conf.default
84 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/cupsd.conf.default
85 $(INSTALL_DIR
) -m
755 $(DATADIR
)/mime
86 for file in
$(REPLACE
); do \
87 if
test -r
$(DATADIR
)/mime
/$$file ; then \
88 $(MV
) $(DATADIR
)/mime
/$$file $(DATADIR
)/mime
/$$file.O
; \
90 if
test -r
$(SERVERROOT
)/$$file ; then \
91 $(MV
) $(SERVERROOT
)/$$file $(DATADIR
)/mime
/$$file.O
; \
93 $(INSTALL_DATA
) $$file $(DATADIR
)/mime
; \
95 -if
test x
$(PAMDIR
) != x
; then \
96 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(PAMDIR
); \
97 if
test -r
$(BUILDROOT
)$(PAMDIR
)/cups
/$(PAMFILE
) ; then \
98 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups.N
; \
100 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
106 # Install programs...
120 # Install libraries...
131 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
132 $(RM
) $(SERVERROOT
)/$$file; \
134 -$(RMDIR
) $(SERVERROOT
)
135 for file in
$(REPLACE
); do \
136 $(RM
) $(DATADIR
)/mime
/$$file; \
138 -$(RMDIR
) $(DATADIR
)/mime
139 -if
test x
$(PAMDIR
) != x
; then \
140 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
141 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \
146 # End of "$Id: Makefile 7670 2008-06-17 22:42:08Z mike $".