File: rules

package info (click to toggle)
ocamldsort 0.16.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 288 kB
  • sloc: ml: 343; makefile: 96; sh: 9
file content (21 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download | duplicates (2)
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