--- /home/russ/Desktop/Makefile	2007-07-24 18:13:53.000000000 -0400
+++ Makefile	2007-07-24 18:32:31.000000000 -0400
@@ -8,13 +8,15 @@
 modules: aufs.ko
 
 patch:
-	cp -r ./fs/* $(KDIR)/fs/
-	cp -r ./include/* $(KDIR)/include/
+	cp -r ./fs $(KDIR)
+	find $(KDIR)/fs -type d -name CVS | xargs -r rm -rf
+	cp -r ./include $(KDIR)
+	find $(KDIR)/include -type d -name CVS | xargs -r rm -rf
 	-test -z '$(shell grep 'obj-$$(CONFIG_AUFS) += aufs/' $(KDIR)/fs/Makefile)' && \
 	echo 'obj-$$(CONFIG_AUFS) += aufs/' >> $(KDIR)/fs/Makefile
 	-test -z "$(shell grep source\ \"fs\/aufs\/Kconfig\" $(KDIR)/fs/Kconfig)" && \
 	sed -e 's/menu "Layered filesystems"/menu "Layered filesystems"\n\nsource "fs\/aufs\/Kconfig"/g' \
-	$(KDIR)/fs/Kconfig > $(KDIR)/fs/Kconfig.new
+	$(KDIR)/fs/Kconfig > $(KDIR)/fs/Kconfig.new && \
 	mv $(KDIR)/fs/Kconfig.new $(KDIR)/fs/Kconfig
 
 util: aufs.5 aufind.sh mount.aufs auplink aulchown umount.aufs
@@ -24,6 +26,7 @@
 	depmod -a $(RELEASE)
 
 util_install: util
+	-test ! -d $(PREFIX)/sbin && mkdir $(PREFIX)/sbin
 	install -m 755 -p mount.aufs umount.aufs auplink aulchown $(PREFIX)/sbin
 	install -m 755 -p -D aufs.5 $(PREFIX)/man/man5/aufs.5
 	bzip2 -f $(PREFIX)/man/man5/aufs.5
