From b3d259d970c91fb8ac3b931e5409dd8cecca699f Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 27 Feb 2013 18:58:30 -0600 Subject: Refactoring of the build system. - Remove unused files for generating LIDs. - Reduce the overall verbosity of the build. - Separate 'config.mk' into a number of smaller, topic-centric files and comment better. - Generalize the 'passes' concept and added an IMAGES pass. - Deprecate most "magic" make variables like EXTRAFOO. - Overall performance improvements. I've tried to reduce the impact of these changes on component-level makefiles. There will be follow-up commit(s) to improve those and decrease the verbosity of some component-owned commands. Change-Id: I6d319f5338eb3946f56b281c3cdd5f341a016fcc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3368 Reviewed-by: Brian H. Horton Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- makefile | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 3fdd33b7d..7ba22a319 100644 --- a/makefile +++ b/makefile @@ -23,21 +23,37 @@ SUBDIRS = src.d ROOTPATH = . -EXTRA_PARTS = ${GENDIR}/hwp_id.html check_istep_modules cscope ctags +IMAGE_PASS_BODY += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile +CLEAN_TARGETS += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile +IMAGE_PASS_BODY += cscope ctags check_istep_modules include ./config.mk +.PHONY: docs docs: src/build/doxygen/doxygen.conf rm -rf obj/doxygen/* doxygen src/build/doxygen/doxygen.conf +.PHONY: citest citest: src/build/citest/cxxtest-start.sh +.PHONY: gcov gcov: rm -rf obj/gcov/* - make gcov_pass + $(MAKE) gcov_pass find obj/gcov/ -size 0c | xargs rm # Delete empty files. genhtml obj/gcov/*.lcov -o obj/gcov/html @echo "View GCOV results with: firefox obj/gcov/html/index.html" +$(IMGDIR)/hbotStringFile : $(IMAGES) + $(ROOTPATH)/src/build/trace/tracehash_hb.pl -c -d $(ROOTPATH)/obj -s $@ + +$(GENDIR)/hwp_id.html : + $(ROOTPATH)/src/build/tools/hwp_id.pl -i -l > $@ + +.PHONY: check_istep_modules +check_istep_modules: $(OBJS) + listdeps.pl $(IMGDIR) -v + + -- cgit v1.2.1