Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6 #export DH_OPTIONS=-v
7
8 DESTDIR=$(CURDIR)/debian/camlmix
9
10 include /usr/share/ocaml/ocamlvars.mk
11
12 %:
13 dh $@ --with ocaml
14
15
16 .PHONY: override_dh_auto_build
17 override_dh_auto_build:
18 ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
19 make native
20 else
21 make byte
22 endif
23
24
25 .PHONY: override_dh_auto_install
26 override_dh_auto_install:
27 mkdir -p '$(DESTDIR)/usr/bin'
28 make install 'PREFIX=$(DESTDIR)/usr'