]>
Commit | Line | Data |
---|---|---|
4d301e69 | 1 | # |
503b54c9 | 2 | # Desktop makefile for CUPS. |
4d301e69 | 3 | # |
503b54c9 MS |
4 | # Copyright 2007-2009 by Apple Inc. |
5 | # Copyright 1993-2006 by Easy Software Products. | |
4d301e69 | 6 | # |
503b54c9 MS |
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 | |
57b7b66b | 11 | # missing or damaged, see the license at "http://www.cups.org/". |
4d301e69 MS |
12 | # |
13 | ||
14 | include ../Makedefs | |
15 | ||
16 | ||
17 | # | |
18 | # Make everything... | |
19 | # | |
20 | ||
21 | all: | |
22 | ||
23 | ||
24 | # | |
25 | # Make library targets... | |
26 | # | |
27 | ||
28 | libs: | |
29 | ||
30 | ||
31 | # | |
32 | # Make unit tests... | |
33 | # | |
34 | ||
35 | unittests: | |
36 | ||
37 | ||
38 | # | |
39 | # Clean all config and object files... | |
40 | # | |
41 | ||
42 | clean: | |
43 | ||
44 | ||
45 | # | |
46 | # Dummy depend... | |
47 | # | |
48 | ||
49 | depend: | |
50 | ||
51 | ||
52 | # | |
53 | # Install all targets... | |
54 | # | |
55 | ||
56 | install: all install-data install-headers install-libs install-exec | |
57 | ||
58 | ||
59 | # | |
60 | # Install data files... | |
61 | # | |
62 | ||
63 | install-data: | |
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; \ | |
68 | fi | |
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); \ | |
73 | fi | |
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; \ | |
84 | fi | |
85 | ||
86 | ||
87 | # | |
88 | # Install programs... | |
89 | # | |
90 | ||
91 | install-exec: | |
92 | ||
93 | ||
94 | # | |
95 | # Install headers... | |
96 | # | |
97 | ||
98 | install-headers: | |
99 | ||
100 | ||
101 | # | |
102 | # Install libraries... | |
103 | # | |
104 | ||
105 | install-libs: | |
106 | ||
107 | ||
108 | # | |
109 | # Uninstall files... | |
110 | # | |
111 | ||
112 | uninstall: | |
113 | if test "x$(DBUSDIR)" != x; then \ | |
114 | echo Uninstalling cups.conf in $(DBUSDIR)...;\ | |
115 | $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \ | |
116 | $(RMDIR) $(BUILDROOT)$(DBUSDIR); \ | |
117 | fi | |
118 | if test "x$(MENUDIR)" != x; then \ | |
119 | echo Uninstalling desktop menu...; \ | |
120 | $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \ | |
121 | fi | |
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; \ | |
128 | fi |