4 # Desktop makefile for CUPS.
6 # Copyright 2007-2009 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/".
27 # 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 if
test "x$(DBUSDIR)" != x
; then \
67 echo Installing cups.conf in
$(DBUSDIR
)...
;\
68 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(DBUSDIR
)/system.d
; \
69 $(INSTALL_DATA
) cups.conf
$(BUILDROOT
)$(DBUSDIR
)/system.d
/cups.conf
; \
71 if
test "x$(MENUDIR)" != x
; then \
72 echo Installing desktop menu...
; \
73 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(MENUDIR
); \
74 $(INSTALL_DATA
) cups.desktop
$(BUILDROOT
)$(MENUDIR
); \
76 if
test "x$(ICONDIR)" != x
; then \
77 echo Installing desktop icons...
; \
78 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
; \
79 $(INSTALL_DATA
) cups-16.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
/cups.png
; \
80 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
; \
81 $(INSTALL_DATA
) cups-32.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
/cups.png
; \
82 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
; \
83 $(INSTALL_DATA
) cups-64.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
/cups.png
; \
84 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
; \
85 $(INSTALL_DATA
) cups-128.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
/cups.png
; \
104 # Install libraries...
115 if
test "x$(DBUSDIR)" != x
; then \
116 echo Uninstalling cups.conf in
$(DBUSDIR
)...
;\
117 $(RM
) $(BUILDROOT
)$(DBUSDIR
)/cups.conf
; \
118 $(RMDIR
) $(BUILDROOT
)$(DBUSDIR
); \
120 if
test "x$(MENUDIR)" != x
; then \
121 echo Uninstalling desktop menu...
; \
122 $(RM
) $(BUILDROOT
)$(MENUDIR
)/cups.desktop
; \
124 if
test "x$(ICONDIR)" != x
; then \
125 echo Uninstalling desktop icons...
; \
126 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
/cups.png
; \
127 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
/cups.png
; \
128 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
/cups.png
; \
129 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
/cups.png
; \