File: rules

package info (click to toggle)
ocaml-sedlex 1.99.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 384 kB
  • sloc: ml: 3,177; makefile: 171; sh: 6
file content (32 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download
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
#!/usr/bin/make -f

DESTDIR=$(CURDIR)/debian/tmp
include /usr/share/ocaml/ocamlvars.mk
export OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)

%:
	dh $@ --with ocaml

override_dh_auto_configure:

override_dh_auto_install:
	mkdir -p '$(OCAMLFIND_DESTDIR)'
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	dh_auto_install
else
	make install_byteonly DESTDIR=$(DESTDIR)
endif
	
	# ocaml-dangling-cmi
	cp src/lib/sedlexing.mli $(OCAMLFIND_DESTDIR)/sedlex/

override_dh_auto_test:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	# the test target doesn't support parallel build
	dh_auto_test --no-parallel
else
	# the test requires ocamlopt
endif

override_dh_missing:
	dh_missing --fail-missing