Open Bug 668293 Opened 14 years ago Updated 3 years ago

makefiles: add logic to identify classes of makefile targets and use to inhibit needless work

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: joey, Unassigned)

Details

Clean targets would be one the obvious candidate. When a requested make target is of type clean define macros whose value can be used to conditionally inhibit all generation and build activities: o skip autoconf o skip autogen o ... Initially the setup could be based on MAKECMDGOALS but that answer will need a special case as "gmake clean build" would not work properly until all cases could be handled. tmp = $(filter clean%,$(MAKECMDGOALS)) tmp += $(filter %clean,$(MAKECMDGOALS)) tmp := $(sort $(strip tmp)) ifneq (,$(tmp)) ifneq ($(words $(MAKECMDGOALS)),$(words $(tmp))) isCleanTarget := $(tmp) endif endif undefine tmp ifndef isCleanTarget configure-files: endif
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.