#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_INSTALL_CHANGELOGS_ALL = debian/CHANGELOG.upstream

install/clustalw::
	# We have to ask upstream if it is importnat for them that the binary is named clustalw2
	mv $(CURDIR)/debian/clustalw/usr/bin/clustalw2 $(CURDIR)/debian/clustalw/usr/bin/clustalw

	# That is a bit ugly and should be better investigated.
	rmdir $(CURDIR)/debian/clustalw/usr/share/aclocal/

get-upstream-changelog:
	# Get upstream changelog
	cd debian; wget -N --output-document=CHANGELOG.upstream http://www.clustal.org/download/current/CHANGELOG

