summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-05-17 22:09:37 +0300
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-05-17 22:09:37 +0300
commit7f1320a9527e4edc8a38111252e3a494094265a1 (patch)
tree9ddbc44d557f59ee76c4e31c1c5e04fe39dd4423 /Makefile
parent69cda04199b977a20c7c95bb1d191756176f678a (diff)
downloadmesa-7f1320a9527e4edc8a38111252e3a494094265a1.tar.gz
mesa-7f1320a9527e4edc8a38111252e3a494094265a1.tar.xz
mesa-7f1320a9527e4edc8a38111252e3a494094265a1.zip
5a55f68
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b264810
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+COMMIT ?=
+BRANCH ?=
+SANITIZE ?= 1
+
+ifeq ($(strip $(COMMIT)),)
+ COMMIT = `date +%Y%m%d`
+ BRANCH = 10.5
+else
+ BRANCH = master
+endif
+DIRNAME = mesa-${COMMIT}
+
+all: archive
+
+clean:
+ rm -rf $(DIRNAME)/
+
+clone: clean
+ git clone --depth 1 --branch $(BRANCH) \
+ git://git.freedesktop.org/git/mesa/mesa $(DIRNAME)
+
+sanitize: clone vl_mpeg12_decoder.c vl_decoder.c
+ifdef SANITIZE
+ cat < vl_mpeg12_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+ cat < vl_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_decoder.c
+endif
+
+archive: clone sanitize
+ tar -cvf ${DIRNAME}.tar.xz ${DIRNAME}
+