]>
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 | # |
e3101897 | 7 | # Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
4d301e69 MS |
8 | # |
9 | ||
10 | include ../Makedefs | |
11 | ||
12 | ||
13 | # | |
14 | # Make everything... | |
15 | # | |
16 | ||
17 | all: | |
18 | ||
19 | ||
20 | # | |
21 | # Make library targets... | |
22 | # | |
23 | ||
24 | libs: | |
25 | ||
26 | ||
27 | # | |
28 | # Make unit tests... | |
29 | # | |
30 | ||
31 | unittests: | |
32 | ||
33 | ||
34 | # | |
35 | # Clean all config and object files... | |
36 | # | |
37 | ||
38 | clean: | |
39 | ||
40 | ||
41 | # | |
42 | # Dummy depend... | |
43 | # | |
44 | ||
45 | depend: | |
46 | ||
47 | ||
48 | # | |
49 | # Install all targets... | |
50 | # | |
51 | ||
52 | install: all install-data install-headers install-libs install-exec | |
53 | ||
54 | ||
55 | # | |
56 | # Install data files... | |
57 | # | |
58 | ||
59 | install-data: | |
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; \ | |
64 | fi | |
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); \ | |
69 | fi | |
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; \ | |
80 | fi | |
81 | ||
82 | ||
83 | # | |
84 | # Install programs... | |
85 | # | |
86 | ||
87 | install-exec: | |
88 | ||
89 | ||
90 | # | |
91 | # Install headers... | |
92 | # | |
93 | ||
94 | install-headers: | |
95 | ||
96 | ||
97 | # | |
98 | # Install libraries... | |
99 | # | |
100 | ||
101 | install-libs: | |
102 | ||
103 | ||
104 | # | |
105 | # Uninstall files... | |
106 | # | |
107 | ||
108 | uninstall: | |
109 | if test "x$(DBUSDIR)" != x; then \ | |
110 | echo Uninstalling cups.conf in $(DBUSDIR)...;\ | |
111 | $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \ | |
112 | $(RMDIR) $(BUILDROOT)$(DBUSDIR); \ | |
113 | fi | |
114 | if test "x$(MENUDIR)" != x; then \ | |
115 | echo Uninstalling desktop menu...; \ | |
116 | $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \ | |
117 | fi | |
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; \ | |
124 | fi |