#!/usr/bin/make -f

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DFLAGS = -fdebug
else
	DFLAGS = -frelease
endif


%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- DFLAGS="$(DFLAGS)"



get-orig-source:
	dh_testdir
	dh_testroot
	wget http://www.asahi-net.or.jp/~cs8k-cyu/windows/vr0_1a.zip
	unzip vr0_1a.zip
	rm vr/*.dll
	rm vr/*.exe
	rm vr/lib/*.lib
	tar cvfz ../val-and-rick_0.1a.dfsg1.orig.tar.gz vr
	rm -rf vr0_1a.zip vr
