File: rules

package info (click to toggle)
ocaml-obuild 0.1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 808 kB
  • sloc: ml: 6,318; sh: 166; ansic: 34; makefile: 11
file content (21 lines) | stat: -rwxr-xr-x 544 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

DESTDIR=$(CURDIR)/debian/ocaml-obuild

%:
	dh $@ --with ocaml

override_dh_auto_build:
	./bootstrap

override_dh_auto_install:
# Check that installed files have not changed. If so, the Debian
# packaging must be adapted by hand. This way, we avoid a dependency
# on opam-installer.
	diff -u debian/ocaml-obuild.opam-install obuild.install

override_dh_install:
	mkdir -p "$(DESTDIR)/usr/bin"
	cp "dist/build/obuild/obuild" "dist/build/obuild-simple/obuild-simple" "$(DESTDIR)/usr/bin"