Skip to content

Commit

Permalink
Improve floppy image makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
matushorvath committed Jan 3, 2025
1 parent 1786022 commit 1cf3e4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions img/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ msdos6.img: msdos6.7z
empty-%.img:
mformat -i $@ -f $(*F) -C

# freedos image with as much free space as possible
# minimal freedos images
define make-freedos-floppy
dd if=$< of=$(<:img=boot) bs=512 count=1
mformat -i $@ -f $(*F) -C -B $(<:img=boot)
Expand All @@ -115,7 +115,7 @@ endef
freedos-min-%.img: freedos.img
$(make-freedos-floppy)

# msdos 3.x images with as much free space as possible
# minimal msdos 3.x images
define make-msdos3-floppy
dd if=$< of=$(<:img=boot) bs=512 count=1
mformat -i $@ -f $(*F) -C -B $(<:img=boot)
Expand All @@ -137,8 +137,8 @@ endef
msdos3-min-%.img: msdos3.img
$(make-msdos3-floppy)

# msdos 5.x and 6.x images with as much free space as possible
define make-msdos56-floppy
# minimal msdos 5.x and 6.x images
define make-msdos5-floppy
dd if=$< of=$(<:img=boot) bs=512 count=1
mformat -i $@ -f $(*F) -C -B $(<:img=boot)
mcopy -D o -i $< ::IO.SYS IO.SYS
Expand All @@ -154,10 +154,10 @@ define make-msdos56-floppy
endef

msdos5-min-%.img: msdos5.img
$(make-msdos56-floppy)
$(make-msdos5-floppy)

msdos6-min-%.img: msdos6.img
$(make-msdos56-floppy)
$(make-msdos5-floppy)

# additional software
%-poweroff.img: %.img autoexec-poweroff.bat
Expand Down

0 comments on commit 1cf3e4b

Please sign in to comment.