File: rules

package info (click to toggle)
ssreflect 2.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,120 kB
  • sloc: ml: 506; sh: 300; makefile: 42
file content (33 lines) | stat: -rwxr-xr-x 847 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
#!/usr/bin/make -f

include /usr/share/coq/coqvars.mk

export DEB_BUILD_OPTIONS += noautodbgsym

export COQTOP := $(COQ_STDLIB_DIR)
export ROCQLIB := $(COQ_STDLIB_DIR)
export COQBIN := /usr/bin/

PKGS = algebra boot character field fingroup order ssreflect solvable

%:
	dh $@ --with coq

override_dh_auto_build:
	$(MAKE) build
	$(MAKE) doc

override_dh_auto_install:
	$(MAKE) install DSTROOT=$(CURDIR)/debian/tmp
	for pkg in $(PKGS); do \
		find debian/tmp$(COQ_USERCONTRIB_DIR)/mathcomp/$$pkg -regextype posix-awk \
		-regex '.*\.(v|vo|vos|glob)$$' \
		>> debian/libcoq-mathcomp-$$pkg.install ; \
	done
	find debian/tmp$(COQ_USERCONTRIB_DIR)/mathcomp/all -regextype posix-awk \
	-regex '.*\.(v|vo|vos|glob)$$' \
	>> debian/libcoq-mathcomp.install ;

override_dh_auto_clean:
	$(MAKE) clean
	rm -f mathcomp/Makefile.coq mathcomp/Makefile.coq.conf