Mercurial > notdcc
comparison Makefile.inc2.in @ 0:c7f6b056b673
First import of vendor version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 13:49:58 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c7f6b056b673 |
---|---|
1 # common Makefile lines for the Distributed Checksum Clearinghouse programs | |
2 | |
3 # These rules must be included after the share BSD mk files so that | |
4 # the shared files can be happy about defining the main targets | |
5 | |
6 # Copyright (c) 2008 by Rhyolite Software, LLC | |
7 # | |
8 # This agreement is not applicable to any entity which sells anti-spam | |
9 # solutions to others or provides an anti-spam solution as part of a | |
10 # security solution sold to other entities, or to a private network | |
11 # which employs the DCC or uses data provided by operation of the DCC | |
12 # but does not provide corresponding data to other users. | |
13 # | |
14 # Permission to use, copy, modify, and distribute this software without | |
15 # changes for any purpose with or without fee is hereby granted, provided | |
16 # that the above copyright notice and this permission notice appear in all | |
17 # copies and any distributed versions or copies are either unchanged | |
18 # or not called anything similar to "DCC" or "Distributed Checksum | |
19 # Clearinghouse". | |
20 # | |
21 # Parties not eligible to receive a license under this agreement can | |
22 # obtain a commercial license to use DCC by contacting Rhyolite Software | |
23 # at sales@rhyolite.com. | |
24 # | |
25 # A commercial license would be for Distributed Checksum and Reputation | |
26 # Clearinghouse software. That software includes additional features. This | |
27 # free license for Distributed ChecksumClearinghouse Software does not in any | |
28 # way grant permision to use Distributed Checksum and Reputation Clearinghouse | |
29 # software | |
30 # | |
31 # THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL | |
32 # WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |
33 # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC | |
34 # BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES | |
35 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
36 # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
37 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
38 # SOFTWARE. | |
39 | |
40 # Rhyolite Software DCC 1.3.103-1.41 $Revision$ | |
41 # @configure_input@ | |
42 | |
43 # some versions of gmake do not understand ?= | |
44 @MAKE_DOT@ifndef INSTALL | |
45 INSTALL =@DCCINSTALL@ | |
46 @MAKE_DOT@endif | |
47 | |
48 BININSTALL=$(INSTALL) -c $(SET_BINOWN) -m $(BINMODE) | |
49 | |
50 # create the DCC home directory before trying to install files | |
51 beforeinstall:$(BINDIR) $(MANDIR)8 depend all | |
52 $(BINDIR): | |
53 $(INSTALL) -d $(SET_BINOWN) -m 755 $@ | |
54 | |
55 @USE_DCCMANINSTALL@ | |
56 dccmaninstall: | |
57 @MAKE_DOT@ifndef NOMAN | |
58 @MAKE_DOT@ifdef MAN8 | |
59 eval 'for NM in $(MAN8); do\ | |
60 $(INSTALL) -c $(SET_MANOWN) -m $(MANMODE) $$NM $(MANDIR)8@MAN8INST@;\ | |
61 done' | |
62 @MAKE_DOT@endif | |
63 @MAKE_DOT@endif | |
64 | |
65 $(MANDIR)8: | |
66 @MAKE_DOT@ifndef NOMAN | |
67 @MAKE_DOT@ifdef MAN8 | |
68 $(INSTALL) -d $(SET_MANOWN) -m 755 $(MANDIR)8 | |
69 @MAKE_DOT@endif | |
70 @MAKE_DOT@endif | |
71 | |
72 | |
73 uninstall delete:deinstall | |
74 deinstall:beforedelete | |
75 | |
76 progdelete: | |
77 @MAKE_DOT@ifdef PROG | |
78 rm -f $(BINDIR)/$(PROG) | |
79 @MAKE_DOT@endif | |
80 | |
81 beforedelete:progdelete | |
82 @MAKE_DOT@ifdef SUBDIR | |
83 for DIR in $(SUBDIR); do\ | |
84 (cd $$DIR; $(MAKE) $(GMAKE_QUIET) deinstall); done | |
85 @MAKE_DOT@endif | |
86 @MAKE_DOT@ifndef NOMAN | |
87 @MAKE_DOT@ifdef MAN8 | |
88 eval 'for NM in $(MAN8); do rm -f $(MANDIR)8@MAN8INST@/$$NM; done' | |
89 @MAKE_DOT@endif | |
90 @MAKE_DOT@endif | |
91 | |
92 | |
93 # ensure that even systems with neither the BSD nor the gmake dependency | |
94 # mechanisms rebuild things when the main parameter file changes. | |
95 @MAKE_DOT@ifdef SRCS | |
96 $(SRCS:.c=.o):$(DEPTH)/include/dcc_config.h | |
97 # ensure that adding a kludge.h file or otherwise changing included files | |
98 # rebuilds dependencies in systems with .depend files | |
99 .depend:$(DEPTH)/include/dcc_config.h Makefile $(DEPTH)/Makefile.inc \ | |
100 $(DEPTH)/Makefile.inc2 | |
101 @MAKE_DOT@endif |