From b70ac572ea56a4287c98c3e8da9baf8b5354e697 Mon Sep 17 00:00:00 2001
From: Avi Kivity <avi.kivity@gmail.com>
Date: Sun, 2 Dec 2012 16:22:00 +0200
Subject: [PATCH] make: 'clean' target

---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index f887e6046..c04a51761 100644
--- a/Makefile
+++ b/Makefile
@@ -18,4 +18,8 @@ loader.elf: arch/x64/boot.o arch/x64/loader.ld loader.o runtime.o $(drivers) \
 	$(CXX) $(CXXFLAGS) -nostartfiles -static -nodefaultlibs -o $@ \
 	    $(^:%.ld=-T %.ld) -lsupc++
 
+clean:
+	find -name '*.[od]' | xargs rm
+	rm -f loader.elf loader.bin
+
 -include $(shell find -name '*.d')
-- 
GitLab