File: rules

package info (click to toggle)
syslinux 1%3A3.31-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,584 kB
  • ctags: 8,059
  • sloc: ansic: 58,348; asm: 6,652; pascal: 6,176; perl: 907; makefile: 844; python: 266; sh: 139
file content (88 lines) | stat: -rwxr-xr-x 1,879 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/make -f

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

include /usr/share/dpatch/dpatch.make

DATE=$(shell date +%Y-%m-%d)
VERSION=$(shell cat version)

build: build-stamp
build-stamp: patch-stamp 
	dh_testdir

	# Building package
	$(MAKE) DATE="Debian-$(DATE)" VERSION="$(VERSION)"

	# Building images
	install -d -m 0755 build

	for SIZE in 720 1200 1440 1743; \
	do \
		dd if=/dev/zero of=build/img$${SIZE}k bs=1k count=$$SIZE || exit 1; \
	done

	for DRIVE in a: b: c: d:;\
	do \
		MTOOLSRC=debian/config/mtoolsrc mformat $$DRIVE || exit 1; \
	done

	for SIZE in 720 1200 1440 1743; \
	do \
		mtools/syslinux -s build/img$${SIZE}k || exit 1; \
	done

	gzip -9 build/*

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp

	# Cleaning package
	#-$(MAKE) clean
	rm -f .depend memdisk/.depend
	rm -rf build

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Installing package
	install -d -m 0755 debian/syslinux/usr/bin
	install -m 0755 gethostip lss16toppm mkdiskimage ppmtolss16 mtools/syslinux extlinux/extlinux debian/syslinux/usr/bin
	install -m 0755 sys2ansi.pl debian/syslinux/usr/bin/syslinux2ansi

	install -d -m 0755 debian/syslinux/usr/lib/syslinux
	install -m 0644 build/* debian/syslinux/usr/lib/syslinux

	install -m 0644 copybs.com isolinux.bin isolinux-debug.bin ldlinux.bss ldlinux.sys pxelinux.0 com32/modules/*.c32 dos/syslinux.com mbr.bin memdisk/memdisk win32/syslinux.exe debian/syslinux/usr/lib/syslinux

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs NEWS
	dh_installdocs
	dh_install
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install