#!/usr/bin/make -f

export LDLIBS += -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DESTDIR = debian/tmp

%:
	dh $@ --sourcedir=source

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	install -d $(CURDIR)/$(DESTDIR)/usr/share/applications/
	install -d $(CURDIR)/$(DESTDIR)/usr/share/pixmaps/
	install -m 644 $(CURDIR)/debian/*.desktop $(CURDIR)/$(DESTDIR)/usr/share/applications/
	install -m 644 $(CURDIR)/debian/*.xpm $(CURDIR)/$(DESTDIR)/usr/share/pixmaps/
