#!/usr/bin/make -f
# -*- makefile -*-

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

WAF = ./waf

%:
	dh $@

override_dh_auto_configure:
	$(WAF) configure \
		--prefix=/usr \
		--strict \

override_dh_auto_build:
	$(WAF)

override_dh_auto_clean:
	$(WAF) clean || true
	find -name "*.pyc" -delete
	rm -rf build .waf*
	dh_auto_clean

override_dh_auto_install:
	$(WAF) install --destdir=$(CURDIR)/debian/triceratops-lv2
	mkdir -p $(CURDIR)/debian/triceratops-lv2/usr/bin
	install -m 0755 $(CURDIR)/debian/launcher.sh \
	$(CURDIR)/debian/triceratops-lv2/usr/bin/triceratops
