dslinux/toolchain Makefile
stsp
stsp at user.in-berlin.de
Mon Aug 14 20:43:13 CEST 2006
Update of /cvsroot/dslinux/dslinux/toolchain
In directory antilope:/tmp/cvs-serv31900
Modified Files:
Makefile
Log Message:
Create directories only once.
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/toolchain/Makefile,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Makefile 14 Aug 2006 17:53:45 -0000 1.9
+++ Makefile 14 Aug 2006 18:43:11 -0000 1.10
@@ -86,19 +86,14 @@
# Main targets.
#######################################################################
-.PHONY: all dirs fetch clean reset nuke
+.PHONY: all fetch clean reset nuke
# The order of dependencies of the 'all' target is important
# for the bootstrap process.
-all: dirs fetch binutils-install elf2flt-install sysroot-create \
+all: dirs-create fetch binutils-install elf2flt-install sysroot-create \
gcc-stage1-install uClibc-install gcc-stage2-install \
genromfs-install libelf-install ndstool-install
-# Creates empty directories not shipped from CVS.
-dirs:
- -$(foreach d,$(PREFIX) $(DISTDIR) $(SRCDIR) $(OBJDIR) $(SYSROOT), \
- [ -d ${d} ] || mkdir -p ${d};)
-
# If you just want to download distfiles, use this target.
fetch: $(DISTFILES)
@@ -141,6 +136,19 @@
esac
#######################################################################
+# directories
+#######################################################################
+
+dirs-create: $(CWD)/.dirs-created
+dirs-reset:
+ rm -f $(CWD)/.dirs-created
+
+$(CWD)/.dirs-created:
+ -$(foreach d,$(PREFIX) $(DISTDIR) $(SRCDIR) $(OBJDIR) $(SYSROOT), \
+ [ -d ${d} ] || mkdir -p ${d};)
+ touch $@
+
+#######################################################################
# binutils
#######################################################################
More information about the dslinux-commit
mailing list