File: rules

package info (click to toggle)
planets 0.1.13-19
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 512 kB
  • sloc: ml: 4,541; makefile: 207; ansic: 38
file content (27 lines) | stat: -rwxr-xr-x 576 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
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

DEB_DESTDIR := $(CURDIR)/debian/planets

ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	TARGET=planets
else
	TARGET=planets.bc
endif

%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) $(TARGET)

override_dh_auto_install:
	install -D $(TARGET) $(DEB_DESTDIR)/usr/bin/planets
	install -D -m 644 debian/README.examples \
		$(DEB_DESTDIR)/usr/share/doc/planets/examples/README
	install -D -m 644 CHANGES \
		$(DEB_DESTDIR)/usr/share/doc/planets/changelog

override_dh_gencontrol:
	dh_gencontrol -- -VF:OCamlABI="$(OCAML_ABI)"