1# 2# Desktop makefile for CUPS. 3# 4# Copyright © 2020-2024 by OpenPrinting. 5# Copyright 2007-2009 by Apple Inc. 6# Copyright 1993-2006 by Easy Software Products. 7# 8# Licensed under Apache License v2.0. See the file "LICENSE" for more information. 9# 10 11include ../Makedefs 12 13 14# 15# Make everything... 16# 17 18all: 19 20 21# 22# Make library targets... 23# 24 25libs: 26 27 28# 29# Make unit tests... 30# 31 32unittests: 33 34 35# 36# Clean all config and object files... 37# 38 39clean: 40 41 42# 43# Dummy depend... 44# 45 46depend: 47 48 49# 50# Install all targets... 51# 52 53install: all install-data install-headers install-libs install-exec 54 55 56# 57# Install data files... 58# 59 60install-data: 61 if test "x$(DBUSDIR)" != x; then \ 62 echo Installing cups.conf in $(DBUSDIR)...;\ 63 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR)/system.d; \ 64 $(INSTALL_DATA) cups.conf $(BUILDROOT)$(DBUSDIR)/system.d/cups.conf; \ 65 fi 66 if test "x$(MENUDIR)" != x; then \ 67 echo Installing desktop menu...; \ 68 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(MENUDIR); \ 69 $(INSTALL_DATA) cups.desktop $(BUILDROOT)$(MENUDIR); \ 70 fi 71 if test "x$(ICONDIR)" != x; then \ 72 echo Installing desktop icons...; \ 73 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps; \ 74 $(INSTALL_DATA) cups-16.png $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \ 75 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps; \ 76 $(INSTALL_DATA) cups-32.png $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \ 77 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps; \ 78 $(INSTALL_DATA) cups-64.png $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \ 79 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps; \ 80 $(INSTALL_DATA) cups-128.png $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \ 81 fi 82 83 84# 85# Install programs... 86# 87 88install-exec: 89 90 91# 92# Install headers... 93# 94 95install-headers: 96 97 98# 99# Install libraries... 100# 101 102install-libs: 103 104 105# 106# Uninstall files... 107# 108 109uninstall: 110 if test "x$(DBUSDIR)" != x; then \ 111 echo Uninstalling cups.conf in $(DBUSDIR)...;\ 112 $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \ 113 $(RMDIR) $(BUILDROOT)$(DBUSDIR); \ 114 fi 115 if test "x$(MENUDIR)" != x; then \ 116 echo Uninstalling desktop menu...; \ 117 $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \ 118 fi 119 if test "x$(ICONDIR)" != x; then \ 120 echo Uninstalling desktop icons...; \ 121 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \ 122 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \ 123 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \ 124 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \ 125 fi 126