]> git.ipfire.org Git - thirdparty/cups.git/blob - notifier/Makefile
Merge changes from CUPS 1.4svn-r7696.
[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 # Clean all object files...
39 #
40
41 clean:
42 $(RM) $(OBJS) $(TARGETS)
43
44
45 #
46 # Install all targets...
47 #
48
49 install: all install-data install-headers install-libs install-exec
50
51
52 #
53 # Install data files...
54 #
55
56 install-data:
57 $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss
58 -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss
59 if test "x$(SYMROOT)" != "x"; then \
60 $(INSTALL_DIR) $(SYMROOT); \
61 for file in $(TARGETS); do \
62 cp $$file $(SYMROOT); \
63 done \
64 fi
65
66
67 #
68 # Install programs...
69 #
70
71 install-exec:
72 $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier
73 for file in $(TARGETS); do \
74 $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \
75 done
76
77
78 #
79 # Install headers...
80 #
81
82 install-headers:
83
84
85 #
86 # Install libraries...
87 #
88
89 install-libs:
90
91
92 #
93 # Uninstall all targets...
94 #
95
96 uninstall:
97 for file in $(TARGETS); do \
98 $(RM) $(SERVERBIN)/notifier/$$file; \
99 done
100 -$(RMDIR) $(SERVERBIN)/notifier
101 -$(RMDIR) $(SERVERBIN)
102 -$(RMDIR) $(CACHEDIR)/rss
103
104
105 #
106 # Update dependencies (without system header dependencies...)
107 #
108
109 depend:
110 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
111
112
113 #
114 # mailto
115 #
116
117 mailto: mailto.o ../cups/$(LIBCUPS)
118 echo Linking $@...
119 $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS)
120
121
122 #
123 # rss
124 #
125
126 rss: rss.o ../cups/$(LIBCUPS)
127 echo Linking $@...
128 $(CC) $(LDFLAGS) -o rss rss.o $(LIBS)
129
130
131 #
132 # testnotify
133 #
134
135 testnotify: testnotify.o ../cups/$(LIBCUPS)
136 echo Linking $@...
137 $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS)
138
139
140 $(OBJS): ../Makedefs
141
142 include Dependencies
143
144
145 #
146 # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".
147 #