Permalink
Browse files

add 'release' target to Makefile

  • Loading branch information...
1 parent 125689e commit 98b5307e5158a9ac401b29128ddd1184ae06b4d7 @gregkh committed Jul 2, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 Makefile
View
@@ -220,6 +220,16 @@ includes::
endif
+DATE:=$(shell date +%m%d%Y)
+NAME:=psb-kmp
+RELEASE:=$(NAME)-$(DATE)
+release:
+ @ echo "Date = $(DATE)"
+ - rm -f $(RELEASE).tar.gz
+ git archive --format=tar --prefix=$(RELEASE)/ HEAD | gzip -9v > $(RELEASE).tar.gz
+
+.PHONY: release
+
clean cleandir:
rm -rf $(CLEANFILES)

0 comments on commit 98b5307

Please sign in to comment.