#!/usr/bin/make -f

PACKAGE   = jwm
PKGDIR    = $(CURDIR)/debian/$(PACKAGE)
ETCDIR    = $(PKGDIR)/etc/$(PACKAGE)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Upstream does not ship Makefile.am, disable automake from dh_autoreconf
export AUTOMAKE = true

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	cp example.jwmrc $(ETCDIR)/system.$(PACKAGE)rc

override_dh_autoreconf:
	sh autogen.sh
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --sysconfdir=/etc/jwm
