Generate lexer and parser files for tarball creation process
This commit is contained in:
14
Makefile
14
Makefile
@@ -420,6 +420,12 @@ LIB_FILES = \
|
|||||||
$(GLW_FILES)
|
$(GLW_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
parsers: configure
|
||||||
|
-@touch $(TOP)/configs/current
|
||||||
|
$(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp
|
||||||
|
$(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
|
||||||
|
$(MAKE) -C src/mesa/program lex.yy.c program_parse.tab.c program_parse.tab.h
|
||||||
|
|
||||||
# Everything for new a Mesa release:
|
# Everything for new a Mesa release:
|
||||||
ARCHIVES = $(LIB_NAME).tar.gz \
|
ARCHIVES = $(LIB_NAME).tar.gz \
|
||||||
$(LIB_NAME).tar.bz2 \
|
$(LIB_NAME).tar.bz2 \
|
||||||
@@ -428,7 +434,7 @@ ARCHIVES = $(LIB_NAME).tar.gz \
|
|||||||
$(GLUT_NAME).tar.bz2 \
|
$(GLUT_NAME).tar.bz2 \
|
||||||
$(GLUT_NAME).zip
|
$(GLUT_NAME).zip
|
||||||
|
|
||||||
tarballs: rm_depend configure aclocal.m4 md5
|
tarballs: md5
|
||||||
rm -f ../$(LIB_NAME).tar
|
rm -f ../$(LIB_NAME).tar
|
||||||
|
|
||||||
# Helper for autoconf builds
|
# Helper for autoconf builds
|
||||||
@@ -438,7 +444,7 @@ AUTOCONF = autoconf
|
|||||||
AC_FLAGS =
|
AC_FLAGS =
|
||||||
aclocal.m4: configure.ac acinclude.m4
|
aclocal.m4: configure.ac acinclude.m4
|
||||||
$(ACLOCAL) $(ACLOCAL_FLAGS)
|
$(ACLOCAL) $(ACLOCAL_FLAGS)
|
||||||
configure: configure.ac aclocal.m4 acinclude.m4
|
configure: rm_depend configure.ac aclocal.m4 acinclude.m4
|
||||||
$(AUTOCONF) $(AC_FLAGS)
|
$(AUTOCONF) $(AC_FLAGS)
|
||||||
|
|
||||||
rm_depend:
|
rm_depend:
|
||||||
@@ -447,7 +453,7 @@ rm_depend:
|
|||||||
touch $$dep ; \
|
touch $$dep ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
rm_config:
|
rm_config: parsers
|
||||||
rm -f configs/current
|
rm -f configs/current
|
||||||
rm -f configs/autoconf
|
rm -f configs/autoconf
|
||||||
|
|
||||||
@@ -457,7 +463,7 @@ $(LIB_NAME).tar: rm_config
|
|||||||
$(LIB_NAME).tar.gz: $(LIB_NAME).tar
|
$(LIB_NAME).tar.gz: $(LIB_NAME).tar
|
||||||
gzip --stdout --best $(LIB_NAME).tar > $(LIB_NAME).tar.gz
|
gzip --stdout --best $(LIB_NAME).tar > $(LIB_NAME).tar.gz
|
||||||
|
|
||||||
$(GLUT_NAME).tar:
|
$(GLUT_NAME).tar: rm_depend
|
||||||
cd .. ; tar -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
|
cd .. ; tar -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
|
||||||
|
|
||||||
$(GLUT_NAME).tar.gz: $(GLUT_NAME).tar
|
$(GLUT_NAME).tar.gz: $(GLUT_NAME).tar
|
||||||
|
Reference in New Issue
Block a user