#!/usr/bin/make -f

%:
	dh $@ --with apache2 --with sysuser

override_dh_auto_build:
	mkdir build
	cp src/apache.conf build/qemu-web-desktop.conf
	cp src/cgi-bin/qemu-web-desktop.pl build/qemu-web-desktop.pl
	help2man -o build/qwdctl.1 --no-discard-stderr -n 'control qemu-web-desktop' src/bin/qwdctl

override_dh_install:
	dh_install

override_dh_clean:
	rm -rf build
	dh_clean
