File: rules

package info (click to toggle)
coq-float 1%3A8.4-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,692 kB
  • ctags: 30
  • sloc: makefile: 209
file content (49 lines) | stat: -rwxr-xr-x 1,123 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
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
# -*- makefile -*-

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

# Build cache (for accelerating Debian debugging)
BUILDCACHE := $(wildcard ../coq-float.cache)

include /usr/share/coq/coqvars.mk

INCDIRS := -R . Float

FILES_TO_BACKUP := Makefile

%:
	dh $@

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	for u in $(FILES_TO_BACKUP); do \
	  if [ ! -f "$$u.backup" ]; then cp "$$u" "$$u.backup"; fi \
	done
	coq_makefile $(INCDIRS) $(shell find . -name .pc -prune -or -name \*.v -print ) > Makefile

.PHONY: override_dh_auto_build
override_dh_auto_build:
ifeq ($(BUILDCACHE),)
	$(MAKE) depend
	$(MAKE) all
	$(MAKE) html
else
	@echo "===> Build cache detected, skipping compilation <==="
	rsync -a --exclude=debian --exclude=.git $(BUILDCACHE)/ .
endif

.PHONY: override_dh_auto_install
override_dh_auto_install:

.PHONY: override_dh_clean
override_dh_clean:
	dh_clean
	for u in $(FILES_TO_BACKUP); do \
	  if [ -f "$$u.backup" ]; then mv "$$u.backup" "$$u"; fi \
	done

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