File: rules

package info (click to toggle)
ocaml-stdcompat 20~git20240529-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,540 kB
  • sloc: ml: 34,099; sh: 861; makefile: 249
file content (23 lines) | stat: -rwxr-xr-x 473 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
22
23
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

DESTDIR=$(CURDIR)/debian/tmp

%:
	dh $@ --with ocaml --no-parallel

override_dh_auto_configure:
	$(MAKE) -f Makefile.bootstrap
	dh_auto_configure -- --libdir=$(OCAML_STDLIB_DIR)

override_dh_auto_install:
	dh_auto_install
	chmod a-x $(DESTDIR)$(OCAML_STDLIB_DIR)/stdcompat/*
	rm -f $(DESTDIR)$(OCAML_DLL_DIR)/*.owner

override_dh_auto_test:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	dh_auto_test
endif