Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 DESTDIR=$(CURDIR)/debian/tmp
5 include /usr/share/ocaml/ocamlvars.mk
6
7 OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
8 export OCAMLFIND_DESTDIR
9
10 CONFIGURE_OPTS := -use-findlib -installbindir $(DESTDIR)/usr/bin
11
12 %:
13 dh $@ --with ocaml
14
15 override_dh_auto_configure:
16 ./configure $(CONFIGURE_OPTS)
17
18 override_dh_auto_build:
19 $(MAKE) library
20 ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
21 $(MAKE) libraryopt
22 endif
23
24 override_dh_auto_install:
25 mkdir -p $(OCAMLFIND_DESTDIR) $(OCAMLFIND_DESTDIR)/stublibs $(DESTDIR)/usr/bin
26 dh_auto_install
27
28 override_dh_auto_clean:
29 ./configure $(CONFIGURE_OPTS)
30 dh_auto_clean
31 rm -f config/Makefile config/auto-aux/tst config/auto-aux/hasgot.c
32
33 override_dh_missing:
34 dh_missing --fail-missing -X.so.owner
35
36 override_dh_dwz: