]> git.ipfire.org Git - thirdparty/cups.git/blob - notifier/Makefile
42c86ea86c3486926de1010a2ab66b83a3e8f013
[thirdparty/cups.git] / notifier / Makefile
1 #
2 # "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
3 #
4 # Notifier makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
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 TARGETS = mailto rss testnotify
20 OBJS = mailto.o rss.o testnotify.o
21
22
23 #
24 # Make all targets...
25 #
26
27 all: $(TARGETS)
28
29
30 #
31 # Make library targets...
32 #
33
34 libs:
35
36
37 #
38 # Make unit tests...
39 #
40
41 unittests:
42
43
44 #
45 # Clean all object files...
46 #
47
48 clean:
49 $(RM) $(OBJS) $(TARGETS)
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 $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss
65 -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss
66 if test "x$(SYMROOT)" != "x"; then \
67 $(INSTALL_DIR) $(SYMROOT); \
68 cp mailto rss $(SYMROOT); \
69 fi
70
71
72 #
73 # Install programs...
74 #
75
76 install-exec:
77 $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier
78 $(INSTALL_BIN) mailto $(SERVERBIN)/notifier
79 $(INSTALL_BIN) rss $(SERVERBIN)/notifier
80
81
82 #
83 # Install headers...
84 #
85
86 install-headers:
87
88
89 #
90 # Install libraries...
91 #
92
93 install-libs:
94
95
96 #
97 # Uninstall all targets...
98 #
99
100 uninstall:
101 for file in $(TARGETS); do \
102 $(RM) $(SERVERBIN)/notifier/$$file; \
103 done
104 -$(RMDIR) $(SERVERBIN)/notifier
105 -$(RMDIR) $(SERVERBIN)
106 -$(RMDIR) $(CACHEDIR)/rss
107
108
109 #
110 # Update dependencies (without system header dependencies...)
111 #
112
113 depend:
114 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
115
116
117 #
118 # mailto
119 #
120
121 mailto: mailto.o ../cups/$(LIBCUPS)
122 echo Linking $@...
123 $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS)
124
125
126 #
127 # rss
128 #
129
130 rss: rss.o ../cups/$(LIBCUPS)
131 echo Linking $@...
132 $(CC) $(LDFLAGS) -o rss rss.o $(LIBS)
133
134
135 #
136 # testnotify
137 #
138
139 testnotify: testnotify.o ../cups/$(LIBCUPS)
140 echo Linking $@...
141 $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS)
142
143
144 $(OBJS): ../Makedefs
145
146 include Dependencies
147
148
149 #
150 # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".
151 #