File: rules

package info (click to toggle)
aac-tactics 8.8.0+1.gbp069dc3b-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 384 kB
  • sloc: ml: 2,941; makefile: 39
file content (40 lines) | stat: -rwxr-xr-x 835 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
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/coq/coqvars.mk
include /usr/share/ocaml/ocamlvars.mk

# Show full commands when building.
export VERBOSE := 1

TARGET := byte
ifeq ($(OCAML_NATDYNLINK),yes)
  TARGET += opt
else
  export OPT := -byte
endif

%:
	dh $@ --with ocaml

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	$(MAKE) clean

.PHONY: override_dh_auto_build
override_dh_auto_build:
	$(MAKE) Makefile.coq
	$(MAKE) -f Makefile.coq $(TARGET) html

.PHONY: override_dh_auto_install
override_dh_auto_install:
	$(MAKE) -f Makefile.coq install install-byte DSTROOT=$(CURDIR)/debian/tmp

.PHONY: override_dh_install
override_dh_install:
	find debian/tmp -type f -name '*.glob' -delete
	dh_install --fail-missing

.PHONY: override_dh_gencontrol
override_dh_gencontrol:
	dh_gencontrol -- -VF:CoqABI="$(COQ_ABI)"