summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>2002-10-03 10:02:50 +0000
committerhpa <hpa>2002-10-03 10:02:50 +0000
commit1043c2415c84ec6c48d44890027a6fbd5140f577 (patch)
tree9d08a9211e5671e6e91abdaf4279331e343c3a4a /Makefile
parent1769d57c94d7a965168b72b6fd8d48251710b452 (diff)
downloadsyslinux-1043c2415c84ec6c48d44890027a6fbd5140f577.tar.gz
Add tool to create a DOS-formatted hard drive image; minor tidying of the
MBR code.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d4b6c328..5c5eee87 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ NASMSRC = ldlinux.asm syslinux.asm copybs.asm \
SOURCES = $(CSRC) $(NASMSRC) *.inc
BTARGET = kwdhash.gen version.gen ldlinux.bss ldlinux.sys ldlinux.bin \
pxelinux.0 mbr.bin isolinux.bin isolinux-debug.bin
-ITARGET = syslinux.com syslinux copybs.com gethostip
+ITARGET = syslinux.com syslinux copybs.com gethostip mkdiskimage
DOCS = COPYING NEWS README TODO *.doc sample com32/include
OTHER = Makefile bin2c.pl now.pl genhash.pl keywords findpatch.pl \
keytab-lilo.pl version version.pl sys2ansi.pl \
@@ -143,6 +143,10 @@ gethostip.o: gethostip.c
gethostip: gethostip.o
+mkdiskimage: mkdiskimage.in mbr.bin bin2hex.pl
+ $(PERL) bin2hex.pl < mbr.bin | cat mkdiskimage.in - > $@
+ chmod a+x $@
+
install: installer
mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(LIBDIR)
install -m 755 -c $(INSTALL_BIN) $(INSTALLROOT)$(BINDIR)