1 # Copyright © 2012 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
28 $(MAKE) -C src/glsl/tests check
31 -@touch $(top_builddir)/configs/current
32 -@for dir in $(SUBDIRS) ; do \
33 if [ -d $$dir ] ; then \
34 (cd $$dir && $(MAKE) clean) ; \
37 -@test -s $(top_builddir)/configs/current || rm -f $(top_builddir)/configs/current
43 -rm -f $(top_builddir)/configs/current
44 -rm -f $(top_builddir)/configs/autoconf
45 -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
46 -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
50 # Rules for making release tarballs
52 PACKAGE_VERSION=8.1-devel
53 PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
54 PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
60 tests/glx/Makefile.in \
61 src/glsl/glsl_parser.cpp \
62 src/glsl/glsl_parser.h \
63 src/glsl/glsl_lexer.cpp \
64 src/glsl/glcpp/glcpp-lex.c \
65 src/glsl/glcpp/glcpp-parse.c \
66 src/glsl/glcpp/glcpp-parse.h \
67 src/mesa/main/api_exec_es1.c \
68 src/mesa/main/api_exec_es1_dispatch.h \
69 src/mesa/main/api_exec_es1_remap_helper.h \
70 src/mesa/main/api_exec_es2.c \
71 src/mesa/main/api_exec_es2_dispatch.h \
72 src/mesa/main/api_exec_es2_remap_helper.h \
73 src/mesa/program/lex.yy.c \
74 src/mesa/program/program_parse.tab.c \
75 src/mesa/program/program_parse.tab.h
82 -@touch $(top_builddir)/configs/current
83 $(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp
84 $(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
85 $(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h
87 # Everything for new a Mesa release:
88 ARCHIVES = $(PACKAGE_NAME).tar.gz \
89 $(PACKAGE_NAME).tar.bz2 \
93 rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
97 ls -1 $(EXTRA_FILES) ; \
98 git ls-files $(IGNORE_FILES) \
99 ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
104 $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
105 cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
107 $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
108 gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
110 $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
111 bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
113 $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
114 rm -f $(PACKAGE_NAME).zip ; \
116 zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
117 mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
120 @-md5sum $(PACKAGE_NAME).tar.gz
121 @-md5sum $(PACKAGE_NAME).tar.bz2
122 @-md5sum $(PACKAGE_NAME).zip