From bd802e763e5c035817a62114b957ed6778ad491f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 7 Jul 2015 16:02:54 +0100 Subject: Restructure test makefile to be called from main makefile This changes the make test to be executed from the main netsurf makefile instead of being standalone. It also fixes up the urldbtest to run. --- Makefile | 58 +++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fc3225aca..8e1fcc35b 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,8 @@ # make docs # +.PHONY: all + all: all-program # Determine host type @@ -778,7 +780,7 @@ $(eval $(foreach SOURCE,$(filter %.m,$(SOURCES)), \ #$(eval $(foreach SOURCE,$(filter %.s,$(SOURCES)), \ # $(call dependency_generate_s,$(SOURCE),$(subst /,_,$(SOURCE:.s=.d)),$(subst /,_,$(SOURCE:.s=.o))))) -ifneq ($(MAKECMDGOALS),clean) +ifeq ($(filter $(MAKECMDGOALS),clean test),) -include $(sort $(addprefix $(DEPROOT)/,$(DEPFILES))) -include $(D_JSAPI_BINDING) endif @@ -797,14 +799,54 @@ $(eval $(foreach SOURCE,$(filter %.m,$(SOURCES)), \ $(eval $(foreach SOURCE,$(filter %.s,$(SOURCES)), \ $(call compile_target_s,$(SOURCE),$(subst /,_,$(SOURCE:.s=.o)),$(subst /,_,$(SOURCE:.s=.d))))) -.PHONY: all clean docs install package-$(TARGET) package install-$(TARGET) +# ---------------------------------------------------------------------------- +# Test setup +# ---------------------------------------------------------------------------- + +include test/Makefile + + +# ---------------------------------------------------------------------------- +# Clean setup +# ---------------------------------------------------------------------------- + +.PHONY: clean clean: $(CLEANS) -# Target builds a distribution package + +# ---------------------------------------------------------------------------- +# build distribution package +# ---------------------------------------------------------------------------- + +.PHONY: package-$(TARGET) package + package: all-program package-$(TARGET) +# ---------------------------------------------------------------------------- +# local install on the host system +# ---------------------------------------------------------------------------- + +.PHONY: install install-$(TARGET) + +install: all-program install-$(TARGET) + + +# ---------------------------------------------------------------------------- +# Documentation build +# ---------------------------------------------------------------------------- + +.PHONY: docs + +docs: + doxygen Docs/Doxyfile + + +# ---------------------------------------------------------------------------- +# Transifex message processing +# ---------------------------------------------------------------------------- + .PHONY: messages-split-tfx messages-fetch-tfx messages-import-tfx # split fat messages into properties files suitable for uploading to transifex @@ -819,13 +861,3 @@ messages-fetch-tfx: messages-import-tfx: messages-fetch-tfx for tfxlang in $(FAT_LANGUAGES);do perl ./utils/import-messages.pl -l $${tfxlang} -p any -f transifex -o resources/FatMessages -i resources/FatMessages -I Messages.any.$${tfxlang}.tfx ; $(RM) Messages.any.$${tfxlang}.tfx; done -# Target installs executable on the host system -install: all-program install-$(TARGET) - -docs: - doxygen Docs/Doxyfile - -.PHONY:test - -test: - make -C test \ No newline at end of file -- cgit v1.2.3