#!/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://hizuoka.web.fc2.com/game/tatan/tatan.zip
	unzip tatan.zip
	rm tatan/*.dll
	rm tatan/*.exe
	rm tatan/lib/*.lib
	rm tatan/resource/*.RES
	rm `find tatan -name "*.obj"`
	rm tatan/music/*
	rm tatan/se/*
	tar cvfz ../tatan_1.0.dfsg1.orig.tar.gz tatan
	rm -rf tatan.zip tatan
