#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #DH_VERBOSE = 1 PACKAGE=cowlib VERSION = $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg)?.*$$/\1/p') %: dh $@ override_dh_auto_build: dh_auto_build markdown README.md > README.html override_dh_auto_install: dh_auto_install install -d \ $(CURDIR)/debian/erlang-$(PACKAGE)/usr/lib/erlang/lib/$(PACKAGE)-$(VERSION)/ebin install -m 644 ebin/* \ $(CURDIR)/debian/erlang-$(PACKAGE)/usr/lib/erlang/lib/$(PACKAGE)-$(VERSION)/ebin/ install -d \ $(CURDIR)/debian/erlang-$(PACKAGE)/usr/lib/erlang/lib/$(PACKAGE)-$(VERSION)/include install -m 644 include/*.hrl \ $(CURDIR)/debian/erlang-$(PACKAGE)/usr/lib/erlang/lib/$(PACKAGE)-$(VERSION)/include/ override_dh_gencontrol-arch: erlang-depends -a -perlang-cowlib dh_gencontrol -a -perlang-cowlib override_dh_compress: dh_compress -X.erl -X.beam override_dh_auto_clean: dh_auto_clean rm -f README.html