Debian Codegraph @

src/Makefile.am

raw
1 # DNS Reply Tool (drool)
2 #
3 # Copyright (c) 2017-2021, OARC, Inc.
4 # Copyright (c) 2017, Comcast Corporation
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 #
14 # 2. Redistributions in binary form must reproduce the above copyright
15 # notice, this list of conditions and the following disclaimer in
16 # the documentation and/or other materials provided with the
17 # distribution.
18 #
19 # 3. Neither the name of the copyright holder nor the names of its
20 # contributors may be used to endorse or promote products derived
21 # from this software without specific prior written permission.
22 #
23 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 # POSSIBILITY OF SUCH DAMAGE.
35
36 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
37 CLEANFILES = drool \
38 drool.1 \
39 drool-replay.1 \
40 drool-respdiff.1
41
42 SUBDIRS = test
43
44 EXTRA_DIST = drool.in \
45 drool.1in \
46 drool-replay.1in \
47 drool-respdiff.1in
48
49 bin_SCRIPTS = drool
50 droollibdir = $(datadir)/drool/lib/drool
51 dist_droollib_DATA = lib/drool/replay.lua \
52 lib/drool/respdiff.lua
53
54 man1_MANS = drool.1 \
55 drool-replay.1 \
56 drool-respdiff.1
57
58 drool: drool.in Makefile
59 sed -e 's,[@]PACKAGE_NAME[@],$(PACKAGE_NAME),g' \
60 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
61 -e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
62 -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
63 -e 's,[@]droollibdir[@],$(datadir)/drool/lib,g' \
64 -e 's,[@]DROOL_SHEBANG[@],$(DROOL_SHEBANG),g' \
65 < "$(srcdir)/drool.in" > drool
66 chmod +x drool
67
68 .1in.1:
69 sed -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
70 -e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
71 -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
72 < "$<" > "$@"