#!/usr/bin/make -f

export DH_OPTIONS

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq ($(shell uname -s),GNU/kFreeBSD)
    MAKEFILE:=Makefile.freebsd
else
    MAKEFILE:=Makefile.linux
endif

override_dh_auto_build:
	cd makefiles && make -f $(MAKEFILE)

override_dh_auto_clean:
	cd makefiles && make -f $(MAKEFILE) clean
	rm -rf build

# do not build the python module
override_dh_auto_install:

override_dh_installchangelogs:
	dh_installchangelogs VERSION.TXT

%:
	dh $@ 

get-orig-source:
	uscan --no-conf --verbose --download-current-version --destdir ../
