#
# Copyright (C) 2017 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#

SIMULATION_PC := pc-pci-scsi-int.vhdl
DVD_IMAGE := Debian-4.0r0-i386-DVD-1

include $(dir $(shell which faum))/../share/faumachine/vhdl/experiment.mk

generate: $(EXP_DIR)/../install-Debian-4.0r0-int/generate.in
	cat $< \
		| sed -e 's/@DVD@/Debian-4.0r0-i386-DVD-1/' \
		| grep -v '^XCONFIG	' \
		| sed -e 's/IDE1 master (hda)/SCSI1 (0,3,0) (sda)/' \
		> $@
	ln -sf $(EXP_DIR)/../install-Debian-4.0r0-int/screenshots .
	ln -sf $(EXP_DIR)/../install-Debian-4.0r0-int/pointers .

clean distclean::
	$(RM) generate
	$(RM) screenshots
	$(RM) pointers
