dslinux/toolchain Makefile
stsp
stsp at user.in-berlin.de
Sun Aug 20 19:35:35 CEST 2006
Update of /cvsroot/dslinux/dslinux/toolchain
In directory antilope:/tmp/cvs-serv5181
Modified Files:
Makefile
Log Message:
Add dist target. Creates distribution archives.
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/toolchain/Makefile,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Makefile 15 Aug 2006 02:14:00 -0000 1.15
+++ Makefile 20 Aug 2006 17:35:33 -0000 1.16
@@ -80,7 +80,11 @@
ELF2FLT_OBJDIR := $(OBJDIR)/elf2ftl-$(ELF2FLT_VER)
LIBELF_OBJDIR := $(OBJDIR)/libelf-$(ELF2FLT_VER)
-export PATH := $(PREFIX)/bin:$(PATH)
+# For releases, this must be changed to the version number:
+VERSION := $(shell date -I)
+DISTNAME := dslinux-toolchain-$(VERSION)-$(shell uname -m)
+
+export PATH := $(PREFIX)/bin:$(PATH)
#######################################################################
# Main targets.
@@ -92,7 +96,7 @@
# for the bootstrap process.
all: dirs-create binutils-install elf2flt-install sysroot-create \
gcc-stage1-install uClibc-install gcc-stage2-install \
- genromfs-install libelf-install ndstool-install strip
+ genromfs-install libelf-install ndstool-install strip dist
# If you just want to download distfiles, use this target.
fetch: $(DISTFILES)
@@ -593,3 +597,19 @@
#$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.o
#$(TARGET)-strip $(PREFIX)/lib/gcc/$(TARGET)/$(GCC_VER)/thumb/*.a
touch $@
+
+#######################################################################
+# dist
+#######################################################################
+
+dist: $(CWD)/.stripped $(CWD)/.dist-made
+dist-reset:
+ rm -f $(CWD)/.dist-made
+
+$(CWD)/.dist-made:
+ [ -d $(DISTNAME) ] && rm -rf $(DISTNAME)
+ mkdir $(DISTNAME)
+ cp -r $(PREFIX)/* $(DISTNAME)
+ tar -jcf $(DISTNAME).tbz $(DISTNAME)
+ touch $@
+
More information about the dslinux-commit
mailing list