1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#!/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
|