SHELL = sh

Co = ~/Co/

PROG = $(shell echo ${CURDIR} | sed -e 's/.*\///')

OS = i686 alpha sgi irix64 sun4 HPUX CYGWIN OSF1 Darwin

TGTS = $(addprefix Download/${PROG}., ${OS})

SRCS = $(addprefix ${Co}, $(addsuffix Bin/${PROG}, ${OS}))

MAKEFLAGS = -k

ifndef hosttype
 hosttype = i686
endif

.PHONY: all  i install  c clean 

all:	install	tests

c:	clean
clean:
	@echo
	-rm -f *~; \
	rm -f \#*\#; \
	rm -f .\#*; \
	rm -f Download/*.*; \
	rm -f Download/OldBinary/*.*
	@echo

Download/${PROG}.%:	${Co}%Bin/${PROG}
	cp $< $@

i:	install
install: ${TGTS}
	@ls -ltr ${TGTS}

t:	tests
tests:	test1

t1:	test1
test1:	Download/${PROG}.${hosttype}
	$< result.cfg