Adding debian version 3.35-1.
[syslinux-debian/hramrach.git] / debian / rules
blob640bd64769fe5c39ac88036c97cd1dc2c5e02f38
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 mtools/syslinux extlinux/extlinux debian/syslinux/usr/bin
61 install -m 0755 sys2ansi.pl debian/syslinux/usr/bin/syslinux2ansi
63 install -d -m 0755 debian/syslinux/usr/lib/syslinux
64 install -m 0644 build/* debian/syslinux/usr/lib/syslinux
66 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
68 binary-indep: build install
70 binary-arch: build install
71 dh_testdir
72 dh_testroot
73 dh_installchangelogs NEWS
74 dh_installdocs
75 dh_install
76 dh_installman
77 dh_link
78 dh_strip
79 dh_compress
80 dh_fixperms
81 dh_installdeb
82 dh_shlibdeps
83 dh_gencontrol
84 dh_md5sums
85 dh_builddeb
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install