#!/usr/bin/make -f

export DEB_CPPFLAGS_MAINT_APPEND = -D_GNU_SOURCE
export DEB_CPPFLAGS_LDFLAGS_APPEND = -rdynamic

%:
	dh $@

override_dh_auto_clean:
	rm -f zipl/boot/.*.d
	dh_auto_clean

override_dh_auto_build:
	make V=1

override_dh_auto_install:
	make install DESTDIR=$(CURDIR)/debian/tmp
	dh_install

override_dh_fixperms:
	chmod 0644 $(CURDIR)/debian/s390-tools/lib/s390-tools/stage3.bin
	dh_fixperms
