File: rules

package info (click to toggle)
camlidl 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: ml: 5,236; ansic: 945; cpp: 908; makefile: 358; xml: 213; sh: 74
file content (35 lines) | stat: -rwxr-xr-x 716 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
#!/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

%:
	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)" BINDIR="$(DESTDIR)/usr/bin"
	cp META "$(DESTDIR)$(OCAML_STDLIB_DIR)/METAS/META.camlidl"

override_dh_ocaml:
	dh_ocaml --runtime-map camlidl