# $Id: Makefile.in,v 1.4 2004/06/02 10:24:24 mnwaitz Exp $
# vim:tabstop=8:shiftwidth=8:textwidth=72

LANG=C
LC_ALL=C

prefix=/usr
datadir=${prefix}/share
docdir=${datadir}/doc/faumachine
examplesdir=${docdir}/examples


thisexdir=$(examplesdir)/serial

all: experiment

experiment: \
		../install-Debian-3.0r0-serial/node.pc/ide-0/unit-0/media \
		system.vhdl \
		simulation.setup
	@echo "This example uses the slirp (see man slirp) of your system"
	@echo "to access your network (maybe you have to install slirp)."
	@echo "this is an automatic start, demonstrating the use of it."
	@echo
	@echo "If you want to use it manually, use the start_all.sh script"
	@echo "generated by faum-expect -n."
	@echo
	@echo "Do a tail -f ./expect-run.log to view progress output."
	@echo
	faum-expect >  ./expect-run.log 2> ./expect-errors.log
	touch experiment
clean distclean::
	rm -f start_all.sh kill_all.sh
	rm -f errors.*
	rm -f expect-*.log
	rm -f log.*
	rm -f fault_list.expect
distclean::
	rm -f experiment
	rm -rf node.*

../install-Debian-3.0r0-serial/node.node_control/ide-0/unit-0/media:
	cd ../install-Debian-3.0r0-serial; make experiment

install:
	mkdir -p $(DESTDIR)$(thisexdir)
	for file in \
		Makefile \
		simulation.setup \
		system.vhdl \
		; do \
		cp $${file} $(DESTDIR)$(thisexdir) ; \
	done ;

test: 
	@echo "Sorry, don't know how to make test!"
