File: rules

package info (click to toggle)
ocaml-expat 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: xml: 3,918; ml: 648; ansic: 572; makefile: 102
file content (24 lines) | stat: -rwxr-xr-x 555 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
24
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

DESTDIR := $(CURDIR)/debian/tmp$(OCAML_STDLIB_DIR)

ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	DEB_MAKE_BUILD_TARGET = allopt NO_CUSTOM=y
else
	DEB_MAKE_BUILD_TARGET = all NO_CUSTOM=y
endif

%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) $(DEB_MAKE_BUILD_TARGET)

override_dh_auto_install:
	mkdir -p $(DESTDIR) $(CURDIR)/debian/tmp$(OCAML_DLL_DIR)
	OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore $(MAKE) install
	rm -f $(CURDIR)/debian/tmp$(OCAML_DLL_DIR)/*.owner

override_dh_auto_test: