File: rules

package info (click to toggle)
pycaml 0.82-14.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 788 kB
  • ctags: 1,115
  • sloc: ansic: 3,913; ml: 769; makefile: 68; python: 4
file content (37 lines) | stat: -rwxr-xr-x 734 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
33
34
35
36
37
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/ocaml/ocamlvars.mk

DESTDIR := $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
CFLAGS += -Wall

%:
	dh --with ocaml,python2 $@

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	cp debian/Makefile .

.PHONY: override_dh_auto_build
override_dh_auto_build:
ifneq ($(OCAML_OPT_ARCH),)
	$(MAKE) allopt
else
	$(MAKE) all
endif

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	$(MAKE) -f debian/Makefile clean

.PHONY: override_dh_auto_install
override_dh_auto_install:
	$(MAKE) rawinstall OCAML_LIB_INSTALL=$(DESTDIR)/pycaml

.PHONY: override_dh_ocaml
override_dh_ocaml:
	dh_ocaml --runtime-map pycaml