aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2009-01-15 19:36:06 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2009-01-15 19:36:06 +0000
commite62d2ecda04e8f10f409bac5a3b5cbac12bd33e1 (patch)
treeb9fa90a280a7cd025069fc97dd0c72ab5dfc502b /Makefile
parentd76dd3f02d52062c2f6b49d7f8579c4653d3e959 (diff)
downloadbuildroot-e62d2ecda04e8f10f409bac5a3b5cbac12bd33e1.tar.gz
buildroot-e62d2ecda04e8f10f409bac5a3b5cbac12bd33e1.tar.bz2
Makefile: implement make release
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e15676699..157b5e9138 100644
--- a/Makefile
+++ b/Makefile
@@ -516,6 +516,12 @@ help:
@echo 'See docs/README and docs/buildroot.html for further details'
@echo
+release: distclean
+ OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
+ rm -rf ../$$OUT*; cp -al . ../$$OUT; cd ..; \
+ tar cfz $$OUT.tar.gz --exclude .svn --exclude .git --exclude \*~ $$OUT; \
+ rm -rf $$OUT
+
.PHONY: dummy subdirs release distclean clean config oldconfig \
menuconfig tags check test depend defconfig help