2 # "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
4 # Notifier makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
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/".
19 TARGETS
= mailto rss testnotify
20 OBJS
= mailto.o rss.o testnotify.o
31 # Make library targets...
45 # Clean all object files...
49 $(RM
) $(OBJS
) $(TARGETS
)
53 # Install all targets...
56 install: all install-data install-headers install-libs install-exec
60 # Install data files...
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
); \
77 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/notifier
78 $(INSTALL_BIN
) mailto
$(SERVERBIN
)/notifier
79 $(INSTALL_BIN
) rss
$(SERVERBIN
)/notifier
90 # Install libraries...
97 # Uninstall all targets...
101 for file in
$(TARGETS
); do \
102 $(RM
) $(SERVERBIN
)/notifier
/$$file; \
104 -$(RMDIR
) $(SERVERBIN
)/notifier
105 -$(RMDIR
) $(SERVERBIN
)
106 -$(RMDIR
) $(CACHEDIR
)/rss
110 # Update dependencies (without system header dependencies...)
114 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
121 mailto
: mailto.o ..
/cups
/$(LIBCUPS
)
123 $(CC
) $(LDFLAGS
) -o mailto mailto.o
$(LIBS
)
130 rss
: rss.o ..
/cups
/$(LIBCUPS
)
132 $(CC
) $(LDFLAGS
) -o rss rss.o
$(LIBS
)
139 testnotify
: testnotify.o ..
/cups
/$(LIBCUPS
)
141 $(CC
) $(LDFLAGS
) -o testnotify testnotify.o
$(LIBS
)
150 # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".