Codebase list coq-float / 98145e7
More extensive use of debhelper 7, add build cache Stephane Glondu 15 years ago
7 changed file(s) with 39 addition(s) and 52 deletion(s). Raw diff Collapse all Expand all
11
22 [ Stephane Glondu ]
33 * New Upstream Version
4 * Use debhelper 7
5 * Add a build cache (for Debian debugging)
46
57 [ Samuel Mimram ]
68 * Switch packaging to git.
79 * Enforce strict dependency on coq ABI.
810 * Update standards version to 3.8.0.
9 * Update compat to 7.
1011 * Add Homepage field.
1112
12 -- Stephane Glondu <steph@glondu.net> Mon, 23 Feb 2009 15:24:30 +0100
13 -- Stephane Glondu <steph@glondu.net> Mon, 23 Feb 2009 16:52:25 +0100
1314
1415 coq-float (1:8.1-1.0-4) unstable; urgency=low
1516
99
1010 Package: libfloat-coq
1111 Architecture: all
12 Depends: ${shlibs:Depends}, coq-${F:CoqABI}
12 Depends: ${shlibs:Depends}, ${misc:Depends}, coq-${F:CoqABI}
1313 Description: coq library for floating point numbers
1414 Library for reasoning about floating point numbers in coq.
+0
-2
debian/dirs less more
0 usr/lib/coq/user-contrib
1 usr/share/doc/libfloat-coq/html
+0
-0
debian/docs less more
(Empty file)
0 usr/lib/coq/user-contrib
1 usr/share/doc/libfloat-coq
0 *.vo /usr/lib/coq/user-contrib
1 */*.vo /usr/lib/coq/user-contrib
2 html /usr/share/doc/libfloat-coq
00 #!/usr/bin/make -f
11 # -*- makefile -*-
2 # Sample debian/rules that uses debhelper.
3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
72
83 # Uncomment this to turn on verbose mode.
94 #export DH_VERBOSE=1
105
6 # Build cache (for accelerating Debian debugging)
7 BUILDCACHE := $(wildcard ../coq-float.cache)
8
119 include /usr/share/coq/coqvars.mk
1210
13 DESTDIR := debian/libfloat-coq/$(shell coqc -where)/user-contrib
11 INCDIRS := $(shell find . -name .git -prune -or -type d -print)
12 INCDIRS := $(INCDIRS:%=-I %)
1413
15 INCDIRS := $(shell find . -type d)
16 INCDIRS := $(INCDIRS:%=-I %)
14 FILES_TO_BACKUP := Makefile
1715
1816 configure: configure-stamp
1917 configure-stamp:
20 dh_testdir
21 touch configure-stamp
22
18 dh build --before dh_auto_configure
19 for u in $(FILES_TO_BACKUP); do \
20 if [ ! -f "$$u.backup" ]; then cp "$$u" "$$u.backup"; fi \
21 done
22 coq_makefile $(INCDIRS) $(shell find . -name \*.v) > Makefile
23 touch $@
2324
2425 build: build-stamp
2526 build-stamp: configure-stamp
26 dh_testdir
27
28 coq_makefile $(INCDIRS) $(shell find . -name \*.v) > Makefile
27 ifeq ($(BUILDCACHE),)
2928 $(MAKE) depend
3029 $(MAKE) all
3130 $(MAKE) html
32
31 else
32 @echo "===> Build cache detected, skipping compilation <==="
33 rsync -a --exclude=debian --exclude=.git $(BUILDCACHE)/ .
34 endif
35 dh build --after dh_auto_test
3336 touch $@
3437
3538 clean:
36 dh_testdir
37 dh_testroot
38 rm -f build-stamp configure-stamp
39
40 [ ! -f Makefile ] || $(MAKE) clean
41
42 dh_clean
39 dh $@
40 for u in $(FILES_TO_BACKUP); do \
41 if [ -f "$$u.backup" ]; then mv "$$u.backup" "$$u"; fi \
42 done
4343
4444 install: build
45 dh_testdir
46 dh_testroot
47 dh_prep
48 dh_installdirs
45 dh $@ --before dh_auto_install
46 dh $@ --after dh_auto_install
4947
50 cp $(shell find . -name \*.vo) $(DESTDIR)
51 cp $(wildcard *.html) debian/libfloat-coq/usr/share/doc/libfloat-coq/html
48 binary-indep: install
49 echo 'F:CoqABI=$(COQ_ABI)' >> debian/libfloat-coq.substvars
50 dh $@
5251
53 binary-indep: build install
52 binary-arch:
53 # No binary-arch packages
5454
55 binary-arch: build install
56 dh_testdir
57 dh_testroot
58 dh_installchangelogs
59 dh_installdocs
60 dh_installexamples
61 dh_installman
62 dh_link
63 dh_strip
64 dh_compress
65 dh_fixperms
66 dh_installdeb
67 dh_shlibdeps
68 dh_gencontrol -- -VF:CoqABI="$(COQ_ABI)"
69 dh_md5sums
70 dh_builddeb
71
72 binary: binary-indep binary-arch
55 binary: binary-indep
7356 .PHONY: build clean binary-indep binary-arch binary install configure