File: rules

package info (click to toggle)
camlidl 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,596 kB
  • sloc: ml: 5,238; ansic: 945; cpp: 908; makefile: 359; xml: 213; sh: 74
file content (38 lines) | stat: -rwxr-xr-x 768 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
include /usr/share/ocaml/ocamlvars.mk

PACKAGE := camlidl
DESTDIR := $(CURDIR)/debian/$(PACKAGE)

DEB_MAKE_BUILD_TARGET    := all
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
DEB_MAKE_BUILD_TARGET    += opt
endif

%:
	dh $@ --with ocaml

config/Makefile: config/Makefile.unix
	cp $< $@

override_dh_clean: config/Makefile
	dh_clean
	rm -f config/Makefile

override_dh_auto_clean: config/Makefile
	dh_auto_clean
	rm -f config/Makefile

override_dh_auto_configure: config/Makefile

override_dh_auto_build:
	$(MAKE) $(DEB_MAKE_BUILD_TARGET)

override_dh_auto_install:
	$(MAKE) install DESTDIR="$(DESTDIR)"
	sed -i "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/g" debian/META.camlidl

override_dh_ocaml:
	dh_ocaml --runtime-map camlidl