]> git.ipfire.org Git - thirdparty/cups.git/blame - notifier/Makefile
<rdar://problem/5792631> dependency cycle in cups-144 / PrintingCore-250 / Applicatio...
[thirdparty/cups.git] / notifier / Makefile
CommitLineData
ef416fc2 1#
bc44d920 2# "$Id: Makefile 6649 2007-07-11 21:46:42Z 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
f7deaa1a 19TARGETS = mailto rss testnotify
20OBJS = mailto.o rss.o testnotify.o
ef416fc2 21
22
23#
24# Make all targets...
25#
26
27all: $(TARGETS)
28
29
30#
31# Clean all object files...
32#
33
34clean:
35 $(RM) $(OBJS) $(TARGETS)
36
37
38#
39# Install all targets...
40#
41
50fe7201
MS
42install: all install-data install-headers install-libs install-exec
43
44
45#
46# Install data files...
47#
48
49install-data:
91c84a35 50 $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss
f7deaa1a 51 -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss
09a101d6 52 if test "x$(SYMROOT)" != "x"; then \
53 $(INSTALL_DIR) $(SYMROOT); \
54 for file in $(TARGETS); do \
55 cp $$file $(SYMROOT); \
56 done \
57 fi
ef416fc2 58
59
50fe7201
MS
60#
61# Install programs...
62#
63
64install-exec:
65 $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier
66 for file in $(TARGETS); do \
67 $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \
68 done
69
70
71#
72# Install headers...
73#
74
75install-headers:
76
77
78#
79# Install libraries...
80#
81
82install-libs:
83
84
757d2cad 85#
86# Uninstall all targets...
87#
88
89uninstall:
90 for file in $(TARGETS); do \
91 $(RM) $(SERVERBIN)/notifier/$$file; \
92 done
93 -$(RMDIR) $(SERVERBIN)/notifier
94 -$(RMDIR) $(SERVERBIN)
f7deaa1a 95 -$(RMDIR) $(CACHEDIR)/rss
757d2cad 96
97
ef416fc2 98#
99# Update dependencies (without system header dependencies...)
100#
101
102depend:
103 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
104
105
106#
107# mailto
108#
109
110mailto: mailto.o ../cups/$(LIBCUPS)
111 echo Linking $@...
112 $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS)
113
114
f7deaa1a 115#
116# rss
117#
118
119rss: rss.o ../cups/$(LIBCUPS)
120 echo Linking $@...
121 $(CC) $(LDFLAGS) -o rss rss.o $(LIBS)
122
123
ef416fc2 124#
125# testnotify
126#
127
128testnotify: testnotify.o ../cups/$(LIBCUPS)
129 echo Linking $@...
130 $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS)
131
132
133$(OBJS): ../Makedefs
134
135include Dependencies
136
137
138#
bc44d920 139# End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 140#