mesa/Makefile
Igor Gnatenko b7c751ff6a 11.2.0
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-14 07:42:30 +02:00

31 lines
599 B
Makefile

COMMIT ?=
BRANCH ?=
SANITIZE ?= 1
ifeq ($(strip $(COMMIT)),)
COMMIT = `date +%Y%m%d`
BRANCH = 11.2
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 -Jcvf ${DIRNAME}.tar.xz ${DIRNAME}