Skip to main content.
home | support | download

Back to List Archive

RE: RE: Error "Skipping test.html: Wrong method or server"

From: David Norris <kg9ae(at)not-real.geocities.com>
Date: Mon Jan 04 1999 - 06:56:50 GMT
> IT WAS:
> # Create a common name
> METHOD_OBJS=$(HTTP_OBJS)
>
> NOW IS:
> # Create a common name
> METHOD_OBJS=$(FILESYSTEM_OBJS)

Your Makefile has been changed somewhere along the line.  In the
distribution that line of the makefile is:

#
# Create a common name
#
METHOD_OBJS=$($(METHOD)_OBJS)

With
METHOD = FILESYSTEM or
METHOD = FS

the Makefile included with the distribution would work correctly and compile
the filesystem indexer.  Your Makefile looks like it was rewritten to only
compile the HTTP spider.  I've included the default Makefile at the end of
this message for reference.

,David Norris

World Wide Web - http://www.geocities.com/CapeCanaveral/Lab/1652/
Page via mail - 412039@pager.mirabilis.com
ICQ Universal Internet Number - 412039
E-Mail - kg9ae@geocities.com

Makefile
-------------------------------------------------------------------
# Makefile for SWISH
# Kevin Hughes, 3/12/95
#
# The code has been tested to compile on
# Solaris and DEC  G.Hill ghill@library.berkeley.edu 6/11/97
#

#CC= cc
#CC= /usr/ccs/bin/ucbcc
CC = /vol/moby/moby_a/gnu/sun4_sunos5.1/bin/gcc
#CC = /usr/local/bin/gcc
#CC = gcc

CFLAGS= -O2
#CFLAGS=-g

LIBS=	-lm

#
# Method defaults to the filesystem
#
METHOD=FS

#
# The objects for the different methods and
# some common aliases
#
FILESYSTEM_OBJS=fs.o
HTTP_OBJS=http.o httpserver.o
FS_OBJS=$(FILESYSTEM_OBJS)
WEB_OBJS=$(HTTP_OBJS)

#
# Create a common name
#
METHOD_OBJS=$($(METHOD)_OBJS)

OBJS=	check.o file.o index.o search.o error.o \
	hash.o list.o mem.o string.o merge.o swish.o $(METHOD_OBJS)

.c.o:
	$(CC) -c $(CFLAGS) $<

all:	swish-e

swish-e:
	make CFLAGS="-g" $(OBJS)
	$(CC) -o swish-e -g $(CFLAGS) $(OBJS) $(LIBS)
	chmod 755 swish-e

quant:
	make CFLAGS="-g" $(OBJS)
	make quant-link

quant-link:
	quantify $(CC) -o swish-e -g $(CFLAGS) $(OBJS) $(LIBS)

pure:
	make clean
	make CFLAGS="-g" $(OBJS)
	make pure-link

clean:
	rm -f ./swish-e ./*.o ./index.swish

pure-link:
	$(CC) -o swish-e -g $(CFLAGS) $(OBJS) $(LIBS)

test:
	./swish-e -i test.html -v -f index.swish
	./swish-e -f index.swish -w test

$(OBJS):	Makefile config.h swish.h
Received on Sun Jan 3 22:56:27 1999