Imported Upstream version 1.6.4
[platform/upstream/cups.git] / desktop / Makefile
1 #
2 # "$Id: Makefile 11173 2013-07-23 12:31:34Z msweet $"
3 #
4 #   Desktop makefile for CUPS.
5 #
6 #   Copyright 2007-2009 by Apple Inc.
7 #   Copyright 1993-2006 by Easy Software Products.
8 #
9 #   These coded instructions, statements, and computer programs are the
10 #   property of Apple Inc. and are protected by Federal copyright
11 #   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
12 #   which should have been included with this file.  If this file is
13 #   file is missing or damaged, see the license at "http://www.cups.org/".
14 #
15
16 include ../Makedefs
17
18
19 #
20 # Make everything...
21 #
22
23 all:
24
25
26 #
27 # Make library targets...
28 #
29
30 libs:
31
32
33 #
34 # Make unit tests...
35 #
36
37 unittests:
38
39
40 #
41 # Clean all config and object files...
42 #
43
44 clean:
45
46
47 #
48 # Dummy depend...
49 #
50
51 depend:
52
53
54 #
55 # Install all targets...
56 #
57
58 install:        all install-data install-headers install-libs install-exec
59
60
61 #
62 # Install data files...
63 #
64
65 install-data:
66         if test "x$(DBUSDIR)" != x; then \
67                 echo Installing cups.conf in $(DBUSDIR)...;\
68                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR)/system.d; \
69                 $(INSTALL_DATA) cups.conf $(BUILDROOT)$(DBUSDIR)/system.d/cups.conf; \
70         fi
71         if test "x$(MENUDIR)" != x; then \
72                 echo Installing desktop menu...; \
73                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(MENUDIR); \
74                 $(INSTALL_DATA) cups.desktop $(BUILDROOT)$(MENUDIR); \
75         fi
76         if test "x$(ICONDIR)" != x; then \
77                 echo Installing desktop icons...; \
78                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps; \
79                 $(INSTALL_DATA) cups-16.png $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \
80                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps; \
81                 $(INSTALL_DATA) cups-32.png $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \
82                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps; \
83                 $(INSTALL_DATA) cups-64.png $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \
84                 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps; \
85                 $(INSTALL_DATA) cups-128.png $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \
86         fi
87
88
89 #
90 # Install programs...
91 #
92
93 install-exec:
94
95
96 #
97 # Install headers...
98 #
99
100 install-headers:
101
102
103 #
104 # Install libraries...
105 #
106
107 install-libs:
108
109
110 #
111 # Uninstall files...
112 #
113
114 uninstall:
115         if test "x$(DBUSDIR)" != x; then \
116                 echo Uninstalling cups.conf in $(DBUSDIR)...;\
117                 $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \
118                 $(RMDIR) $(BUILDROOT)$(DBUSDIR); \
119         fi
120         if test "x$(MENUDIR)" != x; then \
121                 echo Uninstalling desktop menu...; \
122                 $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \
123         fi
124         if test "x$(ICONDIR)" != x; then \
125                 echo Uninstalling desktop icons...; \
126                 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \
127                 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \
128                 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \
129                 $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \
130         fi
131
132
133 #
134 # End of "$Id: Makefile 11173 2013-07-23 12:31:34Z msweet $".
135 #