File: rules

package info (click to toggle)
ikarus 0.0.3+bzr.2010.01.26-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 39,920 kB
  • sloc: lisp: 47,954; ansic: 13,247; sh: 4,617; java: 641; asm: 366; makefile: 272; awk: 186; perl: 66
file content (30 lines) | stat: -rwxr-xr-x 789 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
#!/usr/bin/make -f

ifneq (,$(filter i386,$(DEB_HOST_ARCH)))
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
else
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
endif

%:
	dh $@

override_dh_auto_build:
	egrep -q '^flags[[:space:]]*:.*\bsse2\b' /proc/cpuinfo \
	 || (echo "error: CPU instruction set extension sse2 not found."; \
	     echo "   aborting build process"; \
	     exit 1)
	dh_auto_build -- -C src
	dh_auto_build -- -C scheme

override_dh_auto_install:
	dh_auto_install
	mv debian/ikarus/usr/bin/scheme-script  debian/ikarus/usr/bin/ikarus-scheme-script

override_dh_install:
	dh_install
	-rm --verbose debian/ikarus/usr/share/doc/ikarus/COPYING
	-rm --verbose debian/ikarus/usr/share/doc/ikarus/GPL-3

override_dh_compress:
	dh_compress -Xikarus-scheme-users-guide.pdf