File: rules

package info (click to toggle)
scheme48 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 18,232 kB
  • sloc: lisp: 88,907; ansic: 87,519; sh: 3,224; makefile: 771
file content (63 lines) | stat: -rwxr-xr-x 1,640 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/make -f

DEB_HOST_ARCH 	    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
#export DEB_LDFLAGS_MAINT_APPEND = -pthread -Wl,z,now
export DEB_LDFLAGS_MAINT_APPEND = -pthread

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with elpa

override_dh_auto_test:
	# disable tests on architectures where they fail
	# up to now it is not clear why some tests fail
ifneq ($(DEB_BUILD_ARCH),ia64)
ifneq ($(DEB_BUILD_ARCH),mipsel)
ifneq ($(DEB_BUILD_ARCH),sparc)
	echo "I: do testing"
	dh_auto_test
else
	echo "I: no test on architecture sparc"
endif
else
	echo "I: no test on architecture mipsel"
endif
else
	echo "I: no test on architecture ia64"
endif

override_dh_update_autotools_config:
	echo "I: better do nothing here"

override_dh_autoreconf:
	echo "I: better do nothing here"

override_dh_auto_configure:
	-test -r /usr/share/misc/config.sub && \
		cp -f /usr/share/misc/config.sub config.sub
	-test -r /usr/share/misc/config.guess && \
		cp -f /usr/share/misc/config.guess config.guess
	./configure --host=$(DEB_HOST_GNU_TYPE) \
		--docdir=/usr/share/doc/scheme48 \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr

override_dh_auto_build:
	dh_auto_build

override_dh_clean:
	dh_clean
	rm -f c/scheme48.def config.guess config.sub config.log config.status
	rm -f Makefile
	rm -f c/scheme48arch.h c/sysdep.h
	rm -f c/ffi-test/ffi-test.o
	rm -f c/r6rs/ieee_bytevect.o
	rm -f c/r6rs/r6rs_externals.o


override_dh_auto_install:
	dh_auto_install
	dh_installchangelogs doc/news.txt