diff options
author | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2010-11-14 01:21:34 +0100 |
---|---|---|
committer | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2010-11-14 01:21:34 +0100 |
commit | ebb36e6403ce0b79372319f20b642b3b2888337b (patch) | |
tree | 4056308a331fd87a09698bd529d93badb3453b6c | |
parent | 4948812c5bc17ade1999575c2fe55c59d7505de8 (diff) |
gnumake2: posh output
-rwxr-xr-x | solenv/gbuild/AllLangResTarget.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/BuildDirs.mk | 6 | ||||
-rwxr-xr-x | solenv/gbuild/ComponentTarget.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/Helper.mk | 8 | ||||
-rwxr-xr-x | solenv/gbuild/Library.mk | 4 | ||||
-rwxr-xr-x | solenv/gbuild/LinkTarget.mk | 14 | ||||
-rwxr-xr-x | solenv/gbuild/Module.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/Output.mk | 8 | ||||
-rwxr-xr-x | solenv/gbuild/StaticLibrary.mk | 4 | ||||
-rwxr-xr-x | solenv/gbuild/gbuild.mk | 2 |
10 files changed, 30 insertions, 25 deletions
diff --git a/solenv/gbuild/AllLangResTarget.mk b/solenv/gbuild/AllLangResTarget.mk index 1aa0447c3456..74a45b744f3c 100755 --- a/solenv/gbuild/AllLangResTarget.mk +++ b/solenv/gbuild/AllLangResTarget.mk @@ -95,7 +95,7 @@ $(foreach repo,$(gb_SrsPartTarget_REPOS),$(eval $(call gb_SrsPartTarget__rules,$ ifeq ($(gb_FULLDEPS),$(true)) $(call gb_SrsPartTarget_get_dep_target,%) : - $(error unable to find resource definition file $* in repositories: $(gb_SrsPartTarget_REPOS)) + $(eval $(call gb_Output_error,Unable to find resource definition file $* in repositories: $(gb_SrsPartTarget_REPOS))) endif diff --git a/solenv/gbuild/BuildDirs.mk b/solenv/gbuild/BuildDirs.mk index 1618bc4725d4..858cb4c23428 100644 --- a/solenv/gbuild/BuildDirs.mk +++ b/solenv/gbuild/BuildDirs.mk @@ -31,8 +31,6 @@ SOLARINC += $(JDKINCS) OUTDIR := $(SOLARVERSION)/$(INPATH) WORKDIR := $(SOLARVERSION)/$(INPATH)/workdir -$(info $(wildcard $(gb_LOCALBUILDDIR)/SetupLocal.mk)) - .PHONY : setuplocal removelocal ifneq ($(gb_LOCALBUILDDIR),) ifneq ($(wildcard $(gb_LOCALBUILDDIR)/SetupLocal.mk),) @@ -50,10 +48,10 @@ else setuplocal : $(eval modulerepo := $(patsubst %/$(MODULE),%,$(foreach repo,$(gb_REPOS),$(wildcard $(repo)/$(MODULE))))) mkdir -p $(gb_LOCALBUILDDIR)/srcdir $(gb_LOCALBUILDDIR)/workdir $(gb_LOCALBUILDDIR)/outdir - time rsync --archive --exclude 'workdir/**' $(SOLARVERSION)/$(INPATH)/ $(gb_LOCALBUILDDIR)/outdir + rsync --archive --exclude 'workdir/**' $(SOLARVERSION)/$(INPATH)/ $(gb_LOCALBUILDDIR)/outdir cp $(modulerepo)/Repository.mk $(gb_LOCALBUILDDIR)/srcdir/Repository.mk cp $(modulerepo)/RepositoryFixes.mk $(gb_LOCALBUILDDIR)/srcdir/RepositoryFixes.mk - time rsync --archive $(modulerepo)/$(MODULE)/ $(gb_LOCALBUILDDIR)/srcdir/$(MODULE) + rsync --archive $(modulerepo)/$(MODULE)/ $(gb_LOCALBUILDDIR)/srcdir/$(MODULE) echo "gb_REPOS := $(gb_LOCALBUILDDIR)/srcdir $(filter-out $(patsubst %/$(MODULE),%,$(foreach repo,$(gb_REPOS),$(wildcard $(repo)/$(MODULE)))),$(gb_REPOS))" > $(gb_LOCALBUILDDIR)/SetupLocal.mk echo "#original gb_REPOS was $(gb_REPOS)" >> $(gb_LOCALBUILDDIR)/SetupLocal.mk echo "OUTDIR := $(gb_LOCALBUILDDIR)/outdir" >> $(gb_LOCALBUILDDIR)/SetupLocal.mk diff --git a/solenv/gbuild/ComponentTarget.mk b/solenv/gbuild/ComponentTarget.mk index c60592fe2447..081c751cd1b6 100755 --- a/solenv/gbuild/ComponentTarget.mk +++ b/solenv/gbuild/ComponentTarget.mk @@ -62,8 +62,7 @@ endef $(foreach repo,$(gb_ComponentTarget_REPOS),$(eval $(call gb_ComponentTarget__rules,$(repo)))) $(call gb_ComponentTarget_get_target,%) : - $(error unable to find component file $(call gb_ComponentTarget_get_source,,$*) in the repositories: $(gb_ComponentTarget_REPOS).\ - Or you are doing an old build.pl build and this module is not depending on libxslt (as it should for xsltproc)) + $(eval $(call gb_Outpt_error,Unable to find component file $(call gb_ComponentTarget_get_source,,$*) in the repositories: $(gb_ComponentTarget_REPOS) or xlstproc is missing.)) $(call gb_ComponentTarget_get_external_target,%) : $(call gb_Helper_deliver,$<,$@) diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk index 83d611dbc957..259803728afa 100644 --- a/solenv/gbuild/Helper.mk +++ b/solenv/gbuild/Helper.mk @@ -109,7 +109,7 @@ define gb_Helper_add_repository gb_Helper_CURRENTREPOSITORY := include $(1)/Repository.mk ifeq ($$(gb_Helper_CURRENTREPOSITORY),) -$$(error no gb_Helper_register_repository in Repository.mk for repository $(1)) +$$(eval $$(call gb_Output_error,No call to gb_Helper_register_repository in Repository.mk for repository $(1))) endif $$(gb_Helper_CURRENTREPOSITORY) := $(1) @@ -145,7 +145,7 @@ endef define gb_Helper_register_executables ifeq ($$(filter $(1),$$(gb_Executable_VALIDGROUPS)),) -$$(error $(1) is not a valid group for executables. Valid groups are: $$(gb_Executable_VALIDGROUPS)) +$$(eval $$(call gb_Output_error,$(1) is not a valid group for executables. Valid groups are: $$(gb_Executable_VALIDGROUPS))) endif gb_Executable_$(1) += $(2) @@ -154,7 +154,7 @@ endef define gb_Helper_register_libraries ifeq ($$(filter $(1),$$(gb_Library_VALIDGROUPS)),) -$$(error $(1) is not a valid group for libraries. Valid groups are: $$(gb_Library_VALIDGROUPS)) +$$(eval $$(call gb_Output_error,$(1) is not a valid group for libraries. Valid groups are: $$(gb_Library_VALIDGROUPS))) endif gb_Library_$(1) += $(2) @@ -163,7 +163,7 @@ endef define gb_Helper_register_static_libraries ifeq ($$(filter $(1),$$(gb_StaticLibrary_VALIDGROUPS)),) -$$(error $(1) is not a valid group for static libraries. Valid groups are: $$(gb_StaticLibrary_VALIDGROUPS)) +$$(eval $$(call gb_Output_error,$(1) is not a valid group for static libraries. Valid groups are: $$(gb_StaticLibrary_VALIDGROUPS))) endif gb_StaticLibrary_$(1) += $(2) diff --git a/solenv/gbuild/Library.mk b/solenv/gbuild/Library.mk index 903db1426dbf..a2b6ef5b3e4d 100755 --- a/solenv/gbuild/Library.mk +++ b/solenv/gbuild/Library.mk @@ -55,8 +55,8 @@ $(gb_Library_OUTDIRLOCATION)/%$(gb_Library_PLAINEXT) : define gb_Library_Library ifeq (,$$(findstring $(1),$$(gb_Library_KNOWNLIBS))) -$$(info currently known libraries are: $(sort $(gb_Library_KNOWNLIBS))) -$$(error Library $(1) must be registered in Repository.mk) +$$(eval $$(call gb_Output_info,Currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) +$$(eval $$(call gb_Output_error,Library $(1) must be registered in Repository.mk)) endif $(call gb_Library_get_target,$(1)) : AUXTARGETS := $(call gb_Library__Library_impl,$(1),$(call gb_Library_get_linktargetname,$(call gb_Library_get_filename,$(1)))) diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index bff8f1f5b44b..0128ea4b4bb1 100755 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -58,7 +58,7 @@ endef $(foreach repo,$(gb_CObject_REPOS),$(eval $(call gb_CObject__rules,$(repo)))) $(call gb_CObject_get_dep_target,%) : - $(error unable to find plain C file $(call gb_CObject_get_source,,$*) in the repositories: $(gb_CObject_REPOS)) + $(eval $(call gb_Output_error,Unable to find plain C file $(call gb_CObject_get_source,,$*) in the repositories: $(gb_CObject_REPOS))) gb_CObject_CObject = @@ -118,7 +118,7 @@ $(foreach repo,$(gb_CxxObject_REPOS),$(eval $(call gb_CxxObject__rules,$(repo))) ifeq ($(gb_FULLDEPS),$(true)) $(call gb_CxxObject_get_dep_target,%) : - $(error unable to find C++ file $(call gb_CxxObject_get_source,,$*) in repositories: $(gb_CxxObject_REPOS)) + $(eval $(call gb_Output_error,Unable to find C++ file $(call gb_CxxObject_get_source,,$*) in repositories: $(gb_CxxObject_REPOS))) endif @@ -158,7 +158,7 @@ $(foreach repo,$(gb_ObjCxxObject_REPOS),$(eval $(call gb_ObjCxxObject__rules,$(r ifeq ($(gb_FULLDEPS),$(true)) $(call gb_ObjCxxObject_get_dep_target,%) : - $(error unable to find Objective C++ file $(call gb_ObjCxxObject_get_source,,$*) in repositories: $(gb_ObjCxxObject_REPOS)) + $(eval $(call gb_Output_error,Unable to find Objective C++ file $(call gb_ObjCxxObject_get_source,,$*) in repositories: $(gb_ObjCxxObject_REPOS))) endif gb_ObjCxxObject_ObjCxxObject = @@ -343,8 +343,8 @@ endef define gb_LinkTarget_add_linked_libs ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2))) -$$(info currently known libraries are: $(sort $(gb_Library_KNOWNLIBS))) -$$(error Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). These must be registered in Repository.mk) +$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) +$$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) endif $(call gb_LinkTarget_get_target,$(1)) : LINKED_LIBS += $(2) @@ -357,8 +357,8 @@ endef define gb_LinkTarget_add_linked_static_libs ifneq (,$$(filter-out $(gb_StaticLibrary_KNOWNLIBS),$(2))) -$$(info currently known static libraries are: $(sort $(gb_StaticLibrary_KNOWNLIBS))) -$$(error Cannot link against static library/libraries $$(filter-out $(gb_StaticLibrary_KNOWNLIBS),$(2)). These must be registered in Repository.mk) +$$(eval $$(call gb_Output_info, currently known static libraries are: $(sort $(gb_StaticLibrary_KNOWNLIBS)),ALL)) +$$(eval $$(call gb_Output_error,Cannot link against static library/libraries $$(filter-out $(gb_StaticLibrary_KNOWNLIBS),$(2)). Static libraries must be registered in Repository.mk)) endif $(call gb_LinkTarget_get_target,$(1)) : LINKED_STATIC_LIBS += $(2) diff --git a/solenv/gbuild/Module.mk b/solenv/gbuild/Module.mk index 08ebb6c38ce5..f8d8f577b7dd 100755 --- a/solenv/gbuild/Module.mk +++ b/solenv/gbuild/Module.mk @@ -97,7 +97,7 @@ endef define gb_Module_make_global_targets ifneq ($$(gb_Module_TARGETSTACK),) -$$(warn corrupted module target stack!) +$$(eval $$(call gb_Output_error,Corrupted module target stack!)) endif include $(1) @@ -106,7 +106,7 @@ all : $$(firstword $$(gb_Module_TARGETSTACK)) clean : $$(firstword $$(gb_Module_CLEANTARGETSTACK)) ifneq ($$(words $$(gb_Module_TARGETSTACK)),1) -$$(warn corrupted module target stack!) +$$(eval $$(call gb_Output_error,Corrupted module target stack!)) endif gb_Module_TARGETSTACK := $$(wordlist 2,$$(words $$(gb_Module_TARGETSTACK)),$$(gb_Module_TARGETSTACK)) diff --git a/solenv/gbuild/Output.mk b/solenv/gbuild/Output.mk index 6a6b5799bb5b..2c0592cdfdd1 100644 --- a/solenv/gbuild/Output.mk +++ b/solenv/gbuild/Output.mk @@ -100,6 +100,14 @@ $(subst :, ,$(word 2,$(1) \ $(gb_Output_COLOR_OUTCLEAN_LEVEL$(3))[:$(gb_Output_COLOR_INCLEAN_LEVEL$(3))Xx.__:$(subst $(WHITESPACE),:,$(2))$(gb_Output_COLOR_OUTCLEAN_LEVEL$(3)):]))$(gb_Output_COLOR_RESET) endef +define gb_Output_info +$(info $(gb_Output_COLOR_OUTBUILD_LEVEL6)[ $(gb_Output_COLOR_INBUILD_LEVEL6)info $(2)$(gb_Output_COLOR_OUTBUILD_LEVEL6) ]$(gb_Output_COLOR_RESET) $(1)) +endef + +define gb_Output_warn +$(warning $(NEWLINE)$(gb_Output_COLOR_OUTCLEAN_LEVEL6)[ $(gb_Output_COLOR_INCLEAN_LEVEL6)WARN $(2)$(gb_Output_COLOR_OUTCLEAN_LEVEL6) ]$(gb_Output_COLOR_RESET) !!!$(NEWLINE)$(gb_Output_COLOR_OUTCLEAN_LEVEL6)[ $(gb_Output_COLOR_INCLEAN_LEVEL6)WARN $(2)$(gb_Output_COLOR_OUTCLEAN_LEVEL6) ]$(gb_Output_COLOR_RESET) !!! $(1)$(NEWLINE)$(gb_Output_COLOR_OUTCLEAN_LEVEL6)[ $(gb_Output_COLOR_INCLEAN_LEVEL6)WARN $(2)$(gb_Output_COLOR_OUTCLEAN_LEVEL6) ]$(gb_Output_COLOR_RESET) !!!) +endef + define gb_Output_error $(error $(gb_Output_COLOR_ERROR)$(1)$(gb_Output_COLOR_RESET)) endef diff --git a/solenv/gbuild/StaticLibrary.mk b/solenv/gbuild/StaticLibrary.mk index 70f77da2ea66..4968e99e29ad 100755 --- a/solenv/gbuild/StaticLibrary.mk +++ b/solenv/gbuild/StaticLibrary.mk @@ -52,8 +52,8 @@ $(gb_StaticLibrary_OUTDIRLOCATION)/%$(gb_StaticLibrary_PLAINEXT) : define gb_StaticLibrary_StaticLibrary ifeq (,$$(findstring $(1),$$(gb_StaticLibrary_KNOWNLIBS))) -$$(info currently known static libraries are: $(sort $(gb_StaticLibrary_KNOWNLIBS))) -$$(error Library $(1) must be registered in $(GBUILDDIR)/libnames.mk) +$$(eval $$(call gb_Output_info,Currently known static libraries are: $(sort $(gb_StaticLibrary_KNOWNLIBS)),ALL)) +$$(eval $$(call gb_Output_error,Static library $(1) must be registered in Repository.mk)) endif $(call gb_StaticLibrary_get_target,$(1)) : AUXTARGETS := $(call gb_StaticLibrary__StaticLibrary_impl,$(1),$(call gb_StaticLibrary_get_linktargetname,$(call gb_StaticLibrary_get_filename,$(1)))) diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index c689b4d95a9b..cfa8c8181856 100755 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -116,7 +116,7 @@ else ifeq ($(OS),MACOSX) include $(GBUILDDIR)/platform/macosx.mk else -$(error unsupported OS: $(OS)) +$(eval $(call gb_Output_error,Unsupported OS: $(OS))) endif endif endif |