#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with sphinxdoc

override_dh_autoreconf:
	ln -sf /usr/share/misc/config.guess
	ln -sf /usr/share/misc/config.sub
	autoconf

execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	make -C Documentation html
endif

override_dh_auto_configure:
	dh_auto_configure -- --enable-libveriuser

override_dh_auto_install:
	$(MAKE) prefix=$(CURDIR)/debian/iverilog/usr install

override_dh_compress:
	dh_compress --exclude=.v
