#!/usr/bin/make -f

# since drop of 32 bit isos, pandoc is not available on some distributions
# it's impossible to dynamicaly generate the manual for 32 bit packages
#
# so, on change, it's important to keek the original markdown file 
# and generate the manual with this line :
# pandoc -s -t man -f markdown debian/elfling.1.md -o debian/elfling.1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CC = $(DEB_HOST_GNU_TYPE)-gcc
export CXX = $(DEB_HOST_GNU_TYPE)-g++

%:
	dh $@

override_dh_auto_build:
	make bin/bin2h
	make bin/elfling
ifeq ($(shell dpkg-architecture -qDEB_HOST_MULTIARCH),x86_64-linux-gnu)
	make bin/prt_64
	
else
	make bin/prt
endif
	make bin/packer
