added clean target

git-svn-id: svn://anubis/hos/trunk@4 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
josh 2007-07-25 01:18:24 +00:00
parent e124ac5b1b
commit bdf4ce8ae8
2 changed files with 10 additions and 1 deletions

View File

@ -3,7 +3,7 @@ HOS = hos
MKISOFS = genisoimage MKISOFS = genisoimage
ISO = $(HOS).iso ISO = $(HOS).iso
.PHONY: kernel iso .PHONY: kernel iso clean
# default target: build the kernel and ISO image # default target: build the kernel and ISO image
all: kernel iso all: kernel iso
@ -16,3 +16,7 @@ kernel:
iso: kernel iso: kernel
$(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \ $(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -o $(ISO) iso -boot-load-size 4 -boot-info-table -o $(ISO) iso
clean:
make -C kernel clean
-rm -f $(ISO)

View File

@ -1,3 +1,8 @@
.PHONY: clean
all: all:
@echo Nothing yet @echo Nothing yet
clean:
@echo Nothing yet