Adding debian version 3.83+dfsg-2.
[syslinux-debian/hramrach.git] / debian / rules
blob850f3337d47192b8e42caed7531b42a617e839ae
1 #!/usr/bin/make -f
3 SHELL := sh -e
5 DATE=$(shell date +%Y-%m-%d)
6 VERSION=$(word 1,$(shell cat version))
8 %:
9 dh ${@} --with quilt
11 dfsg:
12 rm -f doc/rfc5071.txt
14 override_dh_auto_clean:
15 dh_auto_clean
17 rm -rf debian/build
19 rm -f core/.depend memdisk/.depend
20 rm -f com32/lib*/*.a com32/*/*.c32 core/*.0 core/*.bin core/*.bss core/*.sys dos/*.com gpxe/*.0 memdisk/memdisk memdump/*.com
22 override_dh_auto_build:
23 $(MAKE) DATE="Debian-$(DATE)" VERSION="$(VERSION)"
25 mkdir -p debian/build
27 for SIZE in 720 1200 1440 1743; \
28 do \
29 dd if=/dev/zero of=debian/build/img$${SIZE}k bs=1k count=$$SIZE; \
30 done
32 for DRIVE in a: b: c: d:;\
33 do \
34 MTOOLSRC=debian/local/mtoolsrc mformat $$DRIVE; \
35 done
37 for SIZE in 720 1200 1440 1743; \
38 do \
39 mtools/syslinux -s debian/build/img$${SIZE}k; \
40 done
42 gzip -9 -f debian/build/*
44 override_dh_auto_install:
45 $(MAKE) INSTALLROOT=$(CURDIR)/debian/tmp install
47 mkdir -p debian/syslinux-common/usr/lib/syslinux
48 cp debian/build/* debian/syslinux-common/usr/lib/syslinux
50 override_dh_installchangelogs:
51 dh_installchangelogs NEWS