#!/usr/bin/make -f tmp = debian/xvier # Avoid embedding build path for reproducible builds export DEB_CFLAGS_MAINT_APPEND = -ffile-prefix-map=$(CURDIR)=. execute_after_dh_auto_clean: rm -f Makefile %: dh $@ override_dh_auto_build: xmkmf $(MAKE) CDEBUGFLAGS="$(CFLAGS) $(CDEBUGFLAGS)" # Upstream's makefile does not handle DESTDIR, so we just `dh_install` # things directly. override_dh_auto_install: override_dh_installman: dh_installman xvier.man ln -s xvier.6.gz $(tmp)/usr/share/man/man6/xvier_prog.6.gz