]> git.ipfire.org Git - thirdparty/cups.git/blame - notifier/Makefile
Merge changes from CUPS 1.4svn-r7932.
[thirdparty/cups.git] / notifier / Makefile
CommitLineData
ef416fc2 1#
75bd9771 2# "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
ef416fc2 3#
4# Notifier makefile for the Common UNIX Printing System (CUPS).
5#
91c84a35 6# Copyright 2007-2008 by Apple Inc.
f7deaa1a 7# Copyright 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14#
15
16include ../Makedefs
17
18
c5571a1d
MS
19NOTIFIERS = $(DBUS_NOTIFIER) mailto rss
20TARGETS = $(NOTIFIERS) testnotify
21OBJS = dbus.o mailto.o rss.o testnotify.o
ef416fc2 22
23
24#
25# Make all targets...
26#
27
28all: $(TARGETS)
29
30
c9fc04c6
MS
31#
32# Make library targets...
33#
34
35libs:
36
37
5f64df29
MS
38#
39# Make unit tests...
40#
41
42unittests:
43
44
ef416fc2 45#
46# Clean all object files...
47#
48
49clean:
c5571a1d 50 $(RM) $(OBJS) $(TARGETS) dbus.h
ef416fc2 51
52
53#
54# Install all targets...
55#
56
50fe7201
MS
57install: all install-data install-headers install-libs install-exec
58
59
60#
61# Install data files...
62#
63
64install-data:
91c84a35 65 $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss
f7deaa1a 66 -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss
ef416fc2 67
68
50fe7201
MS
69#
70# Install programs...
71#
72
73install-exec:
c5571a1d 74 echo Installing notifiers in $(SERVERBIN)/notifier...
50fe7201 75 $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier
c5571a1d
MS
76 for file in $(NOTIFIERS); do \
77 $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \
78 done
49d87452
MS
79 if test "x$(SYMROOT)" != "x"; then \
80 $(INSTALL_DIR) $(SYMROOT); \
81 cp $(NOTIFIERS) $(SYMROOT); \
82 fi
50fe7201
MS
83
84
85#
86# Install headers...
87#
88
89install-headers:
90
91
92#
93# Install libraries...
94#
95
96install-libs:
97
98
757d2cad 99#
100# Uninstall all targets...
101#
102
103uninstall:
c5571a1d 104 for file in $(NOTIFIERS); do \
757d2cad 105 $(RM) $(SERVERBIN)/notifier/$$file; \
106 done
107 -$(RMDIR) $(SERVERBIN)/notifier
108 -$(RMDIR) $(SERVERBIN)
f7deaa1a 109 -$(RMDIR) $(CACHEDIR)/rss
757d2cad 110
111
ef416fc2 112#
113# Update dependencies (without system header dependencies...)
114#
115
116depend:
117 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
118
119
c5571a1d
MS
120#
121# dbus
122#
123
124dbus: dbus.o ../cups/$(LIBCUPS)
125 echo Linking $@...
126 $(CC) $(LDFLAGS) -o dbus dbus.o $(DBUS_NOTIFIERLIBS) $(LIBS)
127
c5571a1d 128
ef416fc2 129#
130# mailto
131#
132
133mailto: mailto.o ../cups/$(LIBCUPS)
134 echo Linking $@...
135 $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS)
136
137
f7deaa1a 138#
139# rss
140#
141
142rss: rss.o ../cups/$(LIBCUPS)
143 echo Linking $@...
144 $(CC) $(LDFLAGS) -o rss rss.o $(LIBS)
145
146
ef416fc2 147#
148# testnotify
149#
150
151testnotify: testnotify.o ../cups/$(LIBCUPS)
152 echo Linking $@...
153 $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS)
154
155
156$(OBJS): ../Makedefs
157
158include Dependencies
159
160
161#
75bd9771 162# End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".
ef416fc2 163#