#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ \
		--sourcedirectory=prboom2 \
		--with bash_completion

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_INSTALL_BINDIR=games

override_dh_install:
	dh_install -p prboom-plus -X prboom-plus-game-server
	dh_install -N prboom-plus

override_dh_installchangelogs:
	find debian/prboom-plus -name 'NEWS*' -delete
	dh_installchangelogs -- prboom2/NEWS
