From 0bd7b91adc0cc242ff27d2ea94e99beba44a932f Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Fri, 28 Oct 2005 20:07:50 +0000 Subject: [PATCH] Added clean-chapter6 and clean-chapter789 targets. --- jhalfs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/jhalfs b/jhalfs index 9189dff..391413f 100755 --- a/jhalfs +++ b/jhalfs @@ -779,7 +779,7 @@ chapter789: chapter6 $chapter789 clean-all: clean rm -rf ./* -clean: clean-chapter5 clean-chapter4 +clean: clean-chapter789 clean-chapter6 clean-chapter5 clean-chapter4 clean-chapter4: -userdel lfs @@ -793,6 +793,21 @@ clean-chapter5: rm -rf \$(LFS)/tools/* rm -f $chapter5 cd logs && rm -f $chapter5 && cd .. + +clean-chapter6: + umount \$(LFS)/sys + umount \$(LFS)/proc + umount \$(LFS)/dev/shm + umount \$(LFS)/dev/pts + umount \$(LFS)/dev + rm -rf \$(LFS)/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var} + rm -f $chapter6 + cd logs && rm -f $chapter6 && cd .. + +clean-chapter789: + rm -f $chapter789 + cd logs && rm -f $chapter789 && cd .. + EOF ) >> $MKFILE