#!/usr/bin/make -f
# -*- makefile -*-
# Build rules for melting. you can use this file without restriction.

# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh $@

override_dh_auto_build:
	$(MAKE) -f makefile.unices NNDIR=/usr/share/melting/NNFILES 

override_dh_clean:
	dh_clean melting.o decode.o calcul.o melting

override_dh_install:
	dh_install
	install -D BIN/tkmelting.pl $(CURDIR)/debian/melting-gui/usr/bin/tkmelting
	install -m 644 -D BIN/melting.hlp  $(CURDIR)/debian/melting-gui/usr/share/melting/melting.hlp
	install -m 644 -D melting-gui.desktop	$(CURDIR)/debian/melting-gui/usr/share/applications/melting-gui.desktop

# Remark: The following uscan command requires devscripts > 2.12.4 which is not
#         yet released at the time of this package release.  The code can be obtained
#         via
#   git clone git://tille@git.debian.org/git/users/tille/devscripts.git
#         and then use scripts/uscan.pl
get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --destdir=../tarballs --repack-compression xz
