.PHONY=build kernel uspace clean ROOT=distroot BASE=$(shell cd ../../..; pwd) KERNELDIR=$(BASE)/kernel USPACEDIR=$(BASE)/uspace build: kernel uspace gunzip -c grub/grub.img.gz > image.bin e2cp $(KERNELDIR)/kernel.bin image.bin:/boot/kernel.bin e2cp $(USPACEDIR)/init/init image.bin:/init kernel: $(MAKE) -C $(KERNELDIR) uspace: $(MAKE) -C $(USPACEDIR) clean: -rm image.bin