From 985c51e919b82a163c3c12377d1226f93263d62c Mon Sep 17 00:00:00 2001
From: SolidHal <hal@halemmerich.com>
Date: Tue, 15 Oct 2019 07:27:47 -0700
Subject: [PATCH] Added initramfs cleanup

---
 makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/makefile b/makefile
index e522834..ee549d4 100644
--- a/makefile
+++ b/makefile
@@ -38,7 +38,8 @@ clean:
 	@echo "	clean_kernel - which deletes the untar'd kernel folder from build"
 	@echo "	clean_ath - which deletes the untar'd ath9k driver folder from build"
 	@echo "	clean_img - which deletes the built PrawnOS image, this is ran when make image is ran"
-	@echo " clean_fs - which deletes the built PrawnOS base image"
+	@echo " clean_basefs - which deletes the built PrawnOS base image"
+	@echo " clean_initramfs - which deletes the built PrawnOS initramfs image that gets injected into the kernel"
 	@echo "	clean_all - which does all of the above"
 	@echo "	in most cases none of these need to be used manually as most cleanup steps are handled automatically"
 
@@ -54,16 +55,21 @@ clean_ath:
 clean_img:
 	rm -f $(OUTNAME)
 
-.PHONY: clean_fs
-clean_fs:
+.PHONY: clean_basefs
+clean_basefs:
 	rm -r $(BASE)
 
+.PHONY: clean_initramfs
+clean_initramfs:
+	rm -r build/PrawnOS-initramfs.cpio.gz
+
 .PHONY: clean_all
 clean_all:
 	make clean_kernel
 	make clean_ath
 	make clean_img
 	make clean_fs
+	make clean_initramfs
 
 
 .PHONY: kernel
@@ -99,7 +105,6 @@ image:
 	cp $(BASE) $(OUTNAME)
 	make kernel_inject
 
-
 .PHONY: live_image
 live_image:
 	echo "TODO"