2 # "$Id: Makefile 9771 2011-05-12 05:21:56Z mike $"
4 # Configuration file makefile for CUPS.
6 # Copyright 2007-2011 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) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \
77 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \
78 grep -v "\$$Id:" $(SERVERROOT)/$$file > $(SERVERROOT)/$$file.n ; \
79 mv $(SERVERROOT)/$$file.n $(SERVERROOT)/$$file ; \
82 $(INSTALL_CONFIG) -g $(CUPS_GROUP) cupsd.conf $(SERVERROOT)/cupsd.conf.default
83 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
84 for file in $(REPLACE); do \
85 if test -r $(DATADIR)/mime/$$file ; then \
86 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
88 if test -r $(SERVERROOT)/$$file ; then \
89 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
91 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
93 -if test x$(PAMDIR) != x; then \
94 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
95 if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
96 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
98 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
104 # Install programs...
118 # Install libraries...
129 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
130 $(RM) $(SERVERROOT)/$$file; \
132 -$(RMDIR) $(SERVERROOT)
133 for file in $(REPLACE); do \
134 $(RM) $(DATADIR)/mime/$$file; \
136 -$(RMDIR) $(DATADIR)/mime
137 -if test x$(PAMDIR) != x; then \
138 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
139 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
144 # End of "$Id: Makefile 9771 2011-05-12 05:21:56Z mike $".