Debian Codegraph @

contrib/multidig/Makefile

raw ◀ ▶
1 Debian patch touch this file
1 #
2 # Makefile for the multidig system
3 #
4 # Copyright (c) 1998-2000 The ht://Dig Group
5 # Distributed under the terms of the GNU General Public License (GPL)
6 # version 2 or later.
•7 # for the ht://Dig search system https://htdig.sourceforge.net/
8 # and the multidig script system https://htdig.sourceforge.net/contrib/scripts/
9 #
10
11
12 #
13 # You probably want to change some or all of these.
14 # BASH = location of bash or other Bourne-like shell with 'source' builtin
15 # BASEDIR = directory of ht://Dig installation
16 # These should probably be OK.
17 # BINDIR = directory of ht://Dig binaries. Also destination for these scripts.
18 # CONFIG_DIR = directory of ht://Dig config files.
19 # DB_BASE = base directory for ht://Dig / multidig databases
20 BASH= /bin/bash
21 BASEDIR= /opt/htdig
22 BINDIR= $(BASEDIR)/bin
23 CONFIG_DIR= $(BASEDIR)/conf
24 DB_BASE= $(BASEDIR)/db
25
26
27 #
28 # You shouldn't need to change any of this...
29 #
30 SCRIPTS= add-collect add-urls multidig \
31 new-collect new-db gen-collect
32 CONF= db.conf multidig.conf
33
34 all:
35
36 clean:
37 rm -f *~
38
39 install:
40 @echo "Installing scripts..."
41 @for i in $(SCRIPTS); do \
42 sed -e s%@BASH@%$(BASH)% \
43 -e s%@CONFIG_DIR@%$(CONFIG_DIR)% $$i >$(BINDIR)/$$i; \
44 chmod a+x $(BINDIR)/$$i; \
45 echo $(BINDIR)/$$i; \
46 done && test -z "$$fail"
47 @echo
48 @echo "Installing config files..."
49 @echo
50 @for i in $(CONF); do \
51 sed -e s%@BASH@%$(BASH)% -e s%@BASEDIR@%$(BASEDIR)% \
52 -e s%@BINDIR@%$(BINDIR)% -e s%@CONFIG_DIR@%$(CONFIG_DIR)% \
53 -e s%@DB_BASE@%$(DB_BASE)% $$i >$(CONFIG_DIR)/$$i; \
54 echo $(CONFIG_DIR)/$$i; \
55 done && test -z "$$fail"
56 @echo
57 @echo "Done with installation."
58 @echo