dslinux/toolchain Makefile
stsp
stsp at user.in-berlin.de
Sun Aug 13 23:48:20 CEST 2006
Update of /cvsroot/dslinux/dslinux/toolchain
In directory antilope:/tmp/cvs-serv21966
Modified Files:
Makefile
Log Message:
Make nuke target interactive.
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/toolchain/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile 13 Aug 2006 21:25:36 -0000 1.2
+++ Makefile 13 Aug 2006 21:48:17 -0000 1.3
@@ -111,8 +111,34 @@
# Nukes everything (including the installed toolchain itself!)
# Use this to start ALL OVER AGAIN! Use with caution!
-nuke: reset
- rm -rf $(SRCDIR) $(OBJDIR) $(SYSROOT) $(PREFIX)
+nuke:
+ @echo
+ @echo "I will now remove the following directories PERMANENTLY:"
+ @echo
+ @echo " $(SRCDIR)"
+ @echo " $(OBJDIR)"
+ @echo " $(SYSROOT)"
+ @echo " $(PREFIX)"
+ @echo
+ @read -p 'Do you want me to continue? ([no]/yes): ' ANSWER ;\
+ case $$ANSWER in \
+ "yes") \
+ echo "You said $$ANSWER. I will continue."; \
+ rm -rf $(SRCDIR) $(OBJDIR) \
+ $(SYSROOT) $(PREFIX); \
+ echo "Resetting the build"; \
+ $(MAKE) reset ; \
+ ;; \
+ "") \
+ echo "You said no."; \
+ ;; \
+ *) \
+ echo "You said $$ANSWER."; \
+ ;; \
+ esac
+
+
+
#######################################################################
# binutils
More information about the dslinux-commit
mailing list