#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
#

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS := htdocsdir=/usr/share/
DEB_MAKE_EXTRA_ARGS += pythondir=/usr/share/pysysinfo/python

install/pysysinfo::
	rm -f debian/$(cdbs_curpkg)/usr/share/pysysinfo/python/*.py[co]

binary-install/pysysinfo::
	dh_python2 -p$(cdbs_curpkg)

binary-post-install/pysysinfo::
	dh_apache2 -p$(cdbs_curpkg)
