mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 14:38:05 +11:00
95ab1ad588
Working in "blk/" folder from a modern system is harder than it should be. Moving blocks around is a bit awkward, grepping is a bit less convenient than it could be, git blame has troubles following, etc. In this commit, we modify blkpack and blkunpack to work with single text files with blocks being separated by a special markup. I think this will make the code significantly more convenient to work into.
20 lines
357 B
Makefile
20 lines
357 B
Makefile
# See /doc/hw/z80/trs80.txt
|
|
TARGET = os.bin
|
|
BASE = ../../..
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
STAGE = $(BASE)/cvm/stage
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
$(BLKPACK):
|
|
$(MAKE) -C ../tools
|
|
|
|
blkfs: $(BLKPACK)
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(BASE)/cvm stage
|