1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
include /usr/share/ocaml/ocamlvars.mk
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
%:
dh $@ --with=ocaml --no-parallel
override_dh_auto_configure:
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--bindir=\$${prefix}/bin \
--mandir=\$${prefix}/share/man
override_dh_auto_install:
$(MAKE) install prefix=$(CURDIR)/debian/ocamldsort/usr
cd $(CURDIR)/debian/ocamldsort/usr/bin/; \
[ ! -f ocamldsort.opt ] || mv ocamldsort.opt ocamldsort
|