[Mesa-dev] [PATCH 4/8] mesa: Remove generated source files during make clean.
Eric Anholt
eric at anholt.net
Thu May 24 16:45:08 PDT 2012
---
src/mesa/Makefile | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index bb7b13a..4783f32 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -71,6 +71,17 @@ default: $(DEPENDS) asm_subdirs $(MESA_LIBS) $(DRICORE_LIBS) driver_subdirs
GLAPI := $(TOP)/src/mapi/glapi/gen
include $(GLAPI)/glapi_gen.mk
+BUILT_SOURCES = \
+ main/api_exec_es1_dispatch.h \
+ main/api_exec_es1_remap_helper.h \
+ main/api_exec_es2_dispatch.h \
+ main/api_exec_es2_remap_helper.h \
+ main/api_exec_es1.c \
+ main/api_exec_es2.c \
+ program/program_parse.tab.c \
+ program/program_parse.tab.h \
+ program/lex.yy.c
+
main/api_exec_es1_dispatch.h: $(GLAPI)/gl_and_es_API.xml $(glapi_gen_dispatch_deps)
$(call glapi_gen_dispatch,$<,es1)
@@ -243,6 +254,7 @@ clean: clean-dricore
-rm -f depend depend.bak libmesa.a libmesagallium.a
-rm -f drivers/*/*.o
-rm -f *.pc
+ -rm -f $(BUILT_SOURCES)
- at cd drivers/dri && $(MAKE) clean
- at cd drivers/x11 && $(MAKE) clean
- at cd drivers/osmesa && $(MAKE) clean
--
1.7.10
More information about the mesa-dev
mailing list