summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-04-07 13:55:54 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-04-07 13:55:54 +0000
commit9143183a31b97d64b6936af770d6ee503bf49bc2 (patch)
treefaec9d29edd88cbd5661f0a85d0cb576d1463a56
parentc4d36fb1e5464e53285f1141888788301bb45a82 (diff)
downloaddrakx-9143183a31b97d64b6936af770d6ee503bf49bc2.tar
drakx-9143183a31b97d64b6936af770d6ee503bf49bc2.tar.gz
drakx-9143183a31b97d64b6936af770d6ee503bf49bc2.tar.bz2
drakx-9143183a31b97d64b6936af770d6ee503bf49bc2.tar.xz
drakx-9143183a31b97d64b6936af770d6ee503bf49bc2.zip
Uglify make dist
-rw-r--r--mdk-stage1/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index 2e0c14d04..8ef5667e2 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -200,8 +200,20 @@ probe-modules: probe-modules.o probing-FULL.o modules-FULL.o params-FULL.o utils
$(DIET) $(CC) $(LDFLAGS) -o $@ $^
$(STRIPCMD) $@
+dist: tar
tar:
rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+ @if [ -e ".svn" ]; then \
+ $(MAKE) dist-svn; \
+ elif [ -e "../.git" ]; then \
+ $(MAKE) dist-git; \
+ else \
+ echo "Unknown SCM (not SVN nor GIT)";\
+ exit 1; \
+ fi;
+ $(info $(NAME)-$(VERSION).tar.bz2 is ready)
+
+dist-svn:
mkdir -p $(PRODUCT)-$(VERSION)
svn export -q -rBASE . $(PRODUCT)-$(VERSION)/mdk-stage1
svn export -q -rBASE ../kernel $(PRODUCT)-$(VERSION)/kernel
@@ -209,6 +221,9 @@ tar:
tar cfj $(PRODUCT)-$(VERSION).tar.bz2 $(PRODUCT)-$(VERSION)
rm -rf $(PRODUCT)-$(VERSION)
+dist-git:
+ @cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD mdk-stage1 kernel Makefile.config | bzip2 >mdk-stage1/$(PRODUCT)-$(VERSION).tar.bz2;
+
.depend:
$(CPP) $(CFLAGS) -M $(ALLSRC) > .depend