2 # Configuration file makefile for CUPS.
4 # Copyright 2007-2015 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
16 KEEP
= cups-files.conf cupsd.conf snmp.conf
17 REPLACE
= mime.convs mime.types
28 # Make library targets...
42 # Clean all config and object files...
56 # Install all targets...
59 install: all install-data install-headers install-libs install-exec
63 # Install data files...
67 for file in
$(KEEP
); do \
68 if
test -r
$(SERVERROOT
)/$$file ; then \
69 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
)/$$file.N
; \
71 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
) ; \
73 $(INSTALL_CONFIG
) -g
$(CUPS_GROUP
) $$file $(SERVERROOT
)/$$file.default
; \
75 $(INSTALL_DIR
) -m
755 $(DATADIR
)/mime
76 for file in
$(REPLACE
); do \
77 if
test -r
$(DATADIR
)/mime
/$$file ; then \
78 $(MV
) $(DATADIR
)/mime
/$$file $(DATADIR
)/mime
/$$file.O
; \
80 if
test -r
$(SERVERROOT
)/$$file ; then \
81 $(MV
) $(SERVERROOT
)/$$file $(DATADIR
)/mime
/$$file.O
; \
83 $(INSTALL_DATA
) $$file $(DATADIR
)/mime
; \
85 -if
test x
$(PAMDIR
) != x
; then \
86 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(PAMDIR
); \
87 if
test -r
$(BUILDROOT
)$(PAMDIR
)/cups
; then \
88 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups.N
; \
90 $(INSTALL_DATA
) $(PAMFILE
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
110 # Install libraries...
121 for file in
$(KEEP
) $(REPLACE
) cupsd.conf.default
; do \
122 $(RM
) $(SERVERROOT
)/$$file; \
124 -$(RMDIR
) $(SERVERROOT
)
125 for file in
$(REPLACE
); do \
126 $(RM
) $(DATADIR
)/mime
/$$file; \
128 -$(RMDIR
) $(DATADIR
)/mime
129 -if
test x
$(PAMDIR
) != x
; then \
130 $(RM
) $(BUILDROOT
)$(PAMDIR
)/cups
; \
131 $(RMDIR
) $(BUILDROOT
)$(PAMDIR
); \