2 # Desktop makefile for CUPS.
4 # Copyright 2007-2009 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.
21 # Make library targets...
35 # Clean all config and object files...
49 # Install all targets...
52 install: all install-data install-headers install-libs install-exec
56 # Install data files...
60 if test "x$(DBUSDIR)" != x; then \
61 echo Installing cups.conf in $(DBUSDIR)...;\
62 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR)/system.d; \
63 $(INSTALL_DATA) cups.conf $(BUILDROOT)$(DBUSDIR)/system.d/cups.conf; \
65 if test "x$(MENUDIR)" != x; then \
66 echo Installing desktop menu...; \
67 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(MENUDIR); \
68 $(INSTALL_DATA) cups.desktop $(BUILDROOT)$(MENUDIR); \
70 if test "x$(ICONDIR)" != x; then \
71 echo Installing desktop icons...; \
72 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps; \
73 $(INSTALL_DATA) cups-16.png $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \
74 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps; \
75 $(INSTALL_DATA) cups-32.png $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \
76 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps; \
77 $(INSTALL_DATA) cups-64.png $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \
78 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps; \
79 $(INSTALL_DATA) cups-128.png $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \
98 # Install libraries...
109 if test "x$(DBUSDIR)" != x; then \
110 echo Uninstalling cups.conf in $(DBUSDIR)...;\
111 $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \
112 $(RMDIR) $(BUILDROOT)$(DBUSDIR); \
114 if test "x$(MENUDIR)" != x; then \
115 echo Uninstalling desktop menu...; \
116 $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \
118 if test "x$(ICONDIR)" != x; then \
119 echo Uninstalling desktop icons...; \
120 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \
121 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \
122 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \
123 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \