2 # "$Id: Makefile 6649 2007-07-11 21:46:42Z 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...
41 # Clean all config and object files...
55 # Install all targets...
58 install: all install-data install-headers install-libs install-exec
62 # Install data files...
66 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
67 for file in
$(KEEP
); do \
68 if
test -r
$(SERVERROOT
)/$$file ; then \
69 $(INSTALL_CONFIG
) $$file $(SERVERROOT
)/$$file.N
; \
70 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file.N || true
; \
72 $(INSTALL_CONFIG
) $$file $(SERVERROOT
) ; \
73 chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/$$file || true
; \
76 $(INSTALL_CONFIG
) cupsd.conf
$(SERVERROOT
)/cupsd.conf.default
77 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/cupsd.conf.default
78 for file in
$(REPLACE
); do \
79 if
test -r
$(SERVERROOT
)/$$file ; then \
80 $(MV
) $(SERVERROOT
)/$$file $(SERVERROOT
)/$$file.O
; \
82 $(INSTALL_DATA
) $$file $(SERVERROOT
) ; \
84 -if
test x
$(PAMDIR
) != x
; then \
85 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(PAMDIR
); \
86 if
test -r
$(BUILDROOT
)$(PAMDIR
)/cups
/$(PAMFILE
) ; then \
87 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups.N
; \
89 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
109 # Install libraries...
120 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
121 $(RM
) $(SERVERROOT
)/$$file; \
123 -$(RMDIR
) $(SERVERROOT
)
124 -if
test x
$(PAMDIR
) != x
; then \
125 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
126 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \
131 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".