diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/es/Makefile | 14 | ||||
-rw-r--r-- | src/mesa/es/glapi/Makefile | 6 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/mesa/es/Makefile b/src/mesa/es/Makefile index 48b11a6ad23..8cf2eaccabe 100644 --- a/src/mesa/es/Makefile +++ b/src/mesa/es/Makefile @@ -110,11 +110,17 @@ clean: # nothing to install install: -subdirs: - make -C glapi - make -C $(MESA) asm_subdirs +glapi/glapi-stamp: + $(MAKE) -C glapi -depend: $(ES1_ALL_SOURCES) $(ES2_ALL_SOURCES) +subdirs: glapi/glapi-stamp + $(MAKE) -C $(MESA) asm_subdirs + +# remove generated sources because "depend" is checked even when "make clean" +DEPEND_SOURCES := $(filter-out $(GENERATED_SOURCES), $(ES1_ALL_SOURCES) $(ES2_ALL_SOURCES)) +DEPEND_SOURCES := $(filter-out glapi/%, $(DEPEND_SOURCES)) + +depend: glapi/glapi-stamp $(DEPEND_SOURCES) @echo "running $(MKDEP)" @touch depend @# MESA is "..", but luckily, directories are longer than 2 characters diff --git a/src/mesa/es/glapi/Makefile b/src/mesa/es/glapi/Makefile index 1e32af867d5..1256be953d1 100644 --- a/src/mesa/es/glapi/Makefile +++ b/src/mesa/es/glapi/Makefile @@ -30,7 +30,10 @@ ES2_DEPS = $(ES2_APIXML) base2_API.xml es2_EXT.xml es_EXT.xml \ ES1_OUTPUTS := $(addprefix $(ES1_OUTPUT_DIR)/, $(OUTPUTS)) ES2_OUTPUTS := $(addprefix $(ES2_OUTPUT_DIR)/, $(OUTPUTS)) -all: $(ES1_OUTPUTS) $(ES2_OUTPUTS) +all: glapi-stamp + +glapi-stamp: $(ES1_OUTPUTS) $(ES2_OUTPUTS) + @touch glapi-stamp $(ES1_OUTPUTS): APIXML := $(ES1_APIXML) $(ES2_OUTPUTS): APIXML := $(ES2_APIXML) @@ -86,5 +89,6 @@ verify_xml: @rm -f tmp.xml clean: + -rm -f glapi-stamp -rm -rf $(ES1_OUTPUT_DIR) $(ES2_OUTPUT_DIR) -rm -f *~ *.pyc *.pyo |