2 # Desktop makefile for CUPS.
4 # Copyright 2007-2009 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # missing or damaged, see the license at "http://www.cups.org/".
25 # Make library targets...
39 # Clean all config and object files...
53 # Install all targets...
56 install: all install-data install-headers install-libs install-exec
60 # Install data files...
64 if
test "x$(DBUSDIR)" != x
; then \
65 echo Installing cups.conf in
$(DBUSDIR
)...
;\
66 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(DBUSDIR
)/system.d
; \
67 $(INSTALL_DATA
) cups.conf
$(BUILDROOT
)$(DBUSDIR
)/system.d
/cups.conf
; \
69 if
test "x$(MENUDIR)" != x
; then \
70 echo Installing desktop menu...
; \
71 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(MENUDIR
); \
72 $(INSTALL_DATA
) cups.desktop
$(BUILDROOT
)$(MENUDIR
); \
74 if
test "x$(ICONDIR)" != x
; then \
75 echo Installing desktop icons...
; \
76 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
; \
77 $(INSTALL_DATA
) cups-16.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
/cups.png
; \
78 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
; \
79 $(INSTALL_DATA
) cups-32.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
/cups.png
; \
80 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
; \
81 $(INSTALL_DATA
) cups-64.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
/cups.png
; \
82 $(INSTALL_DIR
) -m
755 $(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
; \
83 $(INSTALL_DATA
) cups-128.png
$(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
/cups.png
; \
102 # Install libraries...
113 if
test "x$(DBUSDIR)" != x
; then \
114 echo Uninstalling cups.conf in
$(DBUSDIR
)...
;\
115 $(RM
) $(BUILDROOT
)$(DBUSDIR
)/cups.conf
; \
116 $(RMDIR
) $(BUILDROOT
)$(DBUSDIR
); \
118 if
test "x$(MENUDIR)" != x
; then \
119 echo Uninstalling desktop menu...
; \
120 $(RM
) $(BUILDROOT
)$(MENUDIR
)/cups.desktop
; \
122 if
test "x$(ICONDIR)" != x
; then \
123 echo Uninstalling desktop icons...
; \
124 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/16x16
/apps
/cups.png
; \
125 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/32x32
/apps
/cups.png
; \
126 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/64x64
/apps
/cups.png
; \
127 $(RM
) $(BUILDROOT
)$(ICONDIR
)/hicolor
/128x128
/apps
/cups.png
; \