Adding debian version 3.60~pre6-1.
[syslinux-debian/hramrach.git] / debian / rules
blob5bd4b2c57dcfbe01304ae89feb2f3d00a2ab414b
1 #!/usr/bin/make -f
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
6 include /usr/share/dpatch/dpatch.make
8 DATE=$(shell date +%Y-%m-%d)
9 VERSION=$(shell cat version)
11 build: build-stamp
12 build-stamp: patch-stamp
13 dh_testdir
15 # Building package
16 $(MAKE) DATE="Debian-$(DATE)" VERSION="$(VERSION)"
18 # Building images
19 install -d -m 0755 build
21 for SIZE in 720 1200 1440 1743; \
22 do \
23 dd if=/dev/zero of=build/img$${SIZE}k bs=1k count=$$SIZE || exit 1; \
24 done
26 for DRIVE in a: b: c: d:;\
27 do \
28 MTOOLSRC=debian/config/mtoolsrc mformat $$DRIVE || exit 1; \
29 done
31 for SIZE in 720 1200 1440 1743; \
32 do \
33 mtools/syslinux -s build/img$${SIZE}k || exit 1; \
34 done
36 gzip -9 build/*
38 touch build-stamp
40 clean: unpatch
41 dh_testdir
42 dh_testroot
43 rm -f build-stamp
45 # Cleaning package
46 -$(MAKE) clean
47 rm -f .depend memdisk/.depend
48 rm -rf build
50 dh_clean
52 install: build
53 dh_testdir
54 dh_testroot
55 dh_clean -k
56 dh_installdirs
58 # Installing package
59 install -d -m 0755 debian/syslinux/usr/bin
60 install -m 0755 gethostip lss16toppm mkdiskimage ppmtolss16 syslinux2ansi.pl mtools/syslinux extlinux/extlinux debian/syslinux/usr/bin
62 install -d -m 0755 debian/syslinux/usr/lib/syslinux
63 install -m 0644 build/* debian/syslinux/usr/lib/syslinux
65 install -m 0644 copybs.com isolinux.bin isolinux-debug.bin ldlinux.bss ldlinux.sys pxelinux.0 com32/modules/*.c32 dos/syslinux.com mbr/mbr.bin memdisk/memdisk debian/syslinux/usr/lib/syslinux
67 binary-indep: build install
69 binary-arch: build install
70 dh_testdir
71 dh_testroot
72 dh_installchangelogs NEWS
73 dh_installdocs
74 dh_install
75 dh_installman
76 dh_link
77 dh_strip
78 dh_compress
79 dh_fixperms
80 dh_installdeb
81 dh_shlibdeps
82 dh_gencontrol
83 dh_md5sums
84 dh_builddeb
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install