userfriendly make targets for build and clean
So that now it's possible to do just 'make CppunitTest_sw_macros_test' instead of 'make /home/llunak/build/src/l2/workdir/unxlngx6/CppunitTest/sw_macros_test.test' Change-Id: Ibd1e9ef4fc825043a71bd669b2f5c37ffec68e33 Reviewed-on: https://gerrit.libreoffice.org/1253 Reviewed-by: Peter Foley <jpfoley2@gmail.com> Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
This commit is contained in:
parent
a7320cbe40
commit
28ae80a89d
31 changed files with 42 additions and 0 deletions
|
@ -453,6 +453,7 @@ define gb_AllLangResTarget_AllLangResTarget
|
|||
$(foreach lang,$(gb_AllLangResTarget_LANGS),\
|
||||
$(call gb_ResTarget_ResTarget,$(1)$(lang),$(1),$(lang)))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_AllLangResTarget_get_target,$(1)),$(call gb_AllLangResTarget_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),AllLangResTarget)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ $(foreach lang,$(gb_AllLangZip_LANGS),$(call gb_Zip_Zip_internal,$(1)_$(lang),$(
|
|||
$(call gb_AllLangZip_get_target,$(1)) :| $(dir $(call gb_AllLangZip_get_target,$(1))).dir
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_AllLangZip_get_target,$(1)),$(call gb_AllLangZip_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),AllLangZip)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -141,6 +141,7 @@ $(call gb_CliLibrary_get_clean_target,$(1)) : $(call gb_CliAssembly_get_clean_ta
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_CliLibrary_get_target,$(1)),$(call gb_CliLibraryTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_CliLibrary_get_target,$(1)),$(call gb_CliLibrary_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),CliLibrary)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -100,6 +100,7 @@ $(call gb_CliNativeLibrary_get_clean_target,$(1)) : $(call gb_CliAssembly_get_cl
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_CliNativeLibrary_get_target,$(1)),$(call gb_CliNativeLibraryTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_CliNativeLibrary_get_target,$(1)),$(call gb_CliNativeLibrary_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),CliNativeLibrary)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ $(call gb_CliUnoApi_get_clean_target,$(1)) : $(call gb_CliAssembly_get_clean_tar
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_CliUnoApi_get_target,$(1)),$(call gb_CliUnoApiTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_CliUnoApiTarget_get_target,$(1)),$(call gb_CliUnoApiTarget_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),CliUnoApiTarget)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -354,6 +354,7 @@ $(call gb_Configuration_get_preparation_target,%) :
|
|||
# TODO: ?
|
||||
define gb_Configuration_Configuration_nozip
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Configuration_get_target,$(1)),$(call gb_Configuration_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Configuration)
|
||||
endef
|
||||
|
||||
# $(call gb_Configuration_Configuration,zipfile,repo,nodeliver)
|
||||
|
@ -371,6 +372,7 @@ $(foreach lang,$(gb_Configuration_LANGS),$(eval \
|
|||
$(call gb_Zip_get_clean_target,$(1)_$(lang))))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Configuration_get_target,$(1)),$(call gb_Configuration_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Configuration)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -128,6 +128,7 @@ $(call gb_CppunitTest_get_target,$(1)) : UNO_TYPES :=
|
|||
$(call gb_CppunitTest_get_target,$(1)) : DBGSV_ERROR_OUT := shell
|
||||
$(call gb_CppunitTest_get_target,$(1)) : SAL_DIAGNOSE_ABORT :=
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_CppunitTest_get_target,$(1)),$(call gb_CppunitTest_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),CppunitTest)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ $(call gb_CustomTarget_get_clean_target,%) :
|
|||
|
||||
define gb_CustomTarget_CustomTarget
|
||||
$(eval $(call gb_Module_register_target,$(call gb_CustomTarget_get_target,$(1)),$(call gb_CustomTarget_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),CustomTarget)
|
||||
$(call gb_CustomTarget_get_target,$(1)) :| $(dir $(call gb_CustomTarget_get_target,$(1))).dir
|
||||
|
||||
endef
|
||||
|
|
|
@ -71,6 +71,7 @@ $(call gb_Dictionary_get_clean_target,$(1)) : $(call gb_ExtensionTarget_get_clea
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_Dictionary_get_target,$(1)),$(call gb_ExtensionTarget_get_target,$(call gb_Dictionary_extensionname,$(1))),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Dictionary_get_target,$(1)),$(call gb_Dictionary_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Dictionary)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ $(call gb_Executable_get_clean_target,$(1)) : $(call gb_LinkTarget_get_clean_tar
|
|||
$(call gb_Executable_get_clean_target,$(1)) : AUXTARGETS :=
|
||||
$(call gb_Executable_Executable_platform,$(1),$(2))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Executable_get_target,$(1)),$(call gb_Executable_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Executable)
|
||||
$(call gb_Deliver_add_deliverable,$(call gb_Executable_get_target,$(1)),$(call gb_LinkTarget_get_target,$(2)),$(1))
|
||||
|
||||
endef
|
||||
|
|
|
@ -38,6 +38,7 @@ $(call gb_Extension_get_clean_target,$(1)) : $(call gb_ExtensionTarget_get_clean
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_Extension_get_target,$(1)),$(call gb_ExtensionTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Extension_get_target,$(1)),$(call gb_Extension_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Extension)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ define gb_ExternalPackage_ExternalPackage
|
|||
$(call gb_ExternalPackage_ExternalPackage_internal,$(1),$(2))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_ExternalPackage_get_target,$(1)),$(call gb_ExternalPackage_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),ExternalPackage)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ $(call gb_ExternalProject_get_target,$(1)) : $(call gb_ExternalProject_get_prepa
|
|||
$(call gb_ExternalProject_get_target,$(1)) :| $(dir $(call gb_ExternalProject_get_target,$(1))).dir
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_ExternalProject_get_target,$(1)),$(call gb_ExternalProject_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),ExternalProject)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -95,6 +95,13 @@ define gb_Helper_get_outdir_clean_target
|
|||
$$(subst $(OUTDIR)/,$(WORKDIR)/Clean/OutDir/,$(1))
|
||||
endef
|
||||
|
||||
# e.g. 'make CppunitTest_sw_macros_test'
|
||||
define gb_Helper_make_userfriendly_targets
|
||||
.PHONY: $(2)_$(1) $(2)_$(1)_clean
|
||||
$(2)_$(1) : $(call gb_$(2)_get_target,$(1))
|
||||
$(2)_$(1).clean : $(call gb_$(2)_get_clean_target,$(1))
|
||||
endef
|
||||
|
||||
define gb_Helper_init_registries
|
||||
gb_Executable_VALIDGROUPS := UREBIN SDK OOO NONE
|
||||
gb_Library_VALIDGROUPS := OOOLIBS PLAINLIBS_NONE PLAINLIBS_URE PLAINLIBS_OOO RTLIBS RTVERLIBS UNOLIBS_URE UNOLIBS_OOO UNOVERLIBS EXTENSIONLIBS
|
||||
|
|
|
@ -46,6 +46,7 @@ $(call gb_InstallModule_get_target,$(1)) :| $(dir $(call gb_InstallModule_get_ta
|
|||
$(call gb_InstallModule_get_clean_target,$(1)) : $(call gb_InstallModuleTarget_get_clean_target,$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_InstallModule_get_target,$(1)),$(call gb_InstallModule_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),InstallModule)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ $(call gb_InstallScript_get_clean_target,$(1)) : $(call gb_InstallScriptTarget_g
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_InstallScript_get_target,$(1)),$(call gb_InstallScriptTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_InstallScript_get_target,$(1)),$(call gb_InstallScript_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),InstallScript)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ $(call gb_UnoApiTarget_get_external_headers_target,$(1)) : $(call gb_UnoApiTarge
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_InternalUnoApi_get_target,$(1)),$(call gb_UnoApiTarget_get_target,$(1)_out),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_InternalUnoApi_get_target,$(1)),$(call gb_InternalUnoApi_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),InternalUnoApi)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ $(call gb_Jar_get_target,$(1)) : PACKAGEDIRS :=
|
|||
$(call gb_Jar_get_target,$(1)) : PACKAGEFILES :=
|
||||
$(call gb_JavaClassSet_JavaClassSet,$(call gb_Jar_get_classsetname,$(1)))
|
||||
$(eval $(call gb_Module_register_target,$(call gb_Jar_get_outdir_target,$(1)),$(call gb_Jar_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Jar)
|
||||
$(call gb_Deliver_add_deliverable,$(call gb_Jar_get_outdir_target,$(1)),$(call gb_Jar_get_target,$(1)),$(1))
|
||||
$(call gb_Jar_get_outdir_target,$(1)) : $(call gb_Jar_get_target,$(1))
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@ $(call gb_JavaClassSet_JavaClassSet,$(call gb_JunitTest_get_classsetname,$(1)))
|
|||
$(call gb_JavaClassSet_use_system_jar,$(call gb_JunitTest_get_classsetname,$(1)),$(OOO_JUNIT_JAR))
|
||||
$(call gb_JunitTest_get_target,$(1)) : $(call gb_JavaClassSet_get_target,$(call gb_JunitTest_get_classsetname,$(1)))
|
||||
$(eval $(call gb_Module_register_target,$(call gb_JunitTest_get_target,$(1)),$(call gb_JunitTest_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),JunitTest)
|
||||
|
||||
endef
|
||||
|
||||
define gb_JunitTest_set_defs
|
||||
|
@ -191,6 +193,8 @@ $(call gb_JunitTest_get_target,%) :
|
|||
|
||||
define gb_JunitTest_JunitTest
|
||||
$(eval $(call gb_Module_register_target,$(call gb_JunitTest_get_target,$(1)),$(call gb_JunitTest_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),JunitTest)
|
||||
|
||||
endef
|
||||
|
||||
gb_JunitTest_set_defs :=
|
||||
|
|
|
@ -72,6 +72,7 @@ $(call gb_Library_get_clean_target,$(1)) : $(call gb_LinkTarget_get_clean_target
|
|||
$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS :=
|
||||
$(call gb_Library_Library_platform,$(1),$(2),$(gb_Library_DLLDIR)/$(call gb_Library_get_dllname,$(1)))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Library__get_final_target,$(1)),$(call gb_Library_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Library)
|
||||
$(call gb_Deliver_add_deliverable,$(call gb_Library_get_target,$(1)),$(call gb_LinkTarget_get_target,$(2)),$(1))
|
||||
|
||||
endef
|
||||
|
|
|
@ -78,6 +78,7 @@ endef
|
|||
define gb_Package_Package
|
||||
$(call gb_Package_Package_internal,$(1),$(2))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Package_get_target,$(1)),$(call gb_Package_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Package)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ define gb_Pagein_Pagein
|
|||
$(call gb_Pagein_get_target,$(1)) : OBJECTS :=
|
||||
$(call gb_Pagein_get_target,$(1)) : $(realpath $(lastword $(MAKEFILE_LIST)))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Pagein_get_outdir_target,$(1)),$(call gb_Pagein_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Pagein)
|
||||
$(call gb_Pagein_get_outdir_target,$(1)) : $(call gb_Pagein_get_target,$(1))
|
||||
|
||||
endef
|
||||
|
|
|
@ -37,6 +37,7 @@ $(call gb_Pyuno_get_clean_target,%) :
|
|||
define gb_Pyuno_Pyuno
|
||||
$(call gb_Zip_Zip,Pyuno/$(1),$(2))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Pyuno_get_target,$(1)),$(call gb_Pyuno_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Pyuno)
|
||||
$(call gb_Pyuno_get_target,$(1)) : $(call gb_Pyuno_get_outdir_target,$(1))
|
||||
$(call gb_Pyuno_get_outdir_target,$(1)) : $(call gb_Zip_get_target,Pyuno/$(1))
|
||||
$(call gb_Pyuno_get_clean_target,$(1)) : $(call gb_Zip_get_clean_target,Pyuno/$(1))
|
||||
|
|
|
@ -63,6 +63,7 @@ $(call gb_Rdb_get_outdir_target,$(1)) : $(call gb_Rdb_get_target,$(1)) \
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_ResTarget_get_outdir_target,$(1)),$(call gb_Rdb_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_Rdb_get_outdir_target,$(1)),$(call gb_Rdb_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Rdb)
|
||||
endef
|
||||
|
||||
define gb_Rdb_add_component
|
||||
|
|
|
@ -60,6 +60,7 @@ $(call gb_StaticLibrary_get_clean_target,$(1)) : $(call gb_LinkTarget_get_clean_
|
|||
$(call gb_StaticLibrary_get_clean_target,$(1)) : AUXTARGETS :=
|
||||
$(call gb_StaticLibrary_StaticLibrary_platform,$(1),$(2))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_StaticLibrary_get_target,$(1)),$(call gb_StaticLibrary_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),StaticLibrary)
|
||||
$(call gb_Deliver_add_deliverable,$(call gb_StaticLibrary_get_target,$(1)),$(call gb_LinkTarget_get_target,$(2)),$(1))
|
||||
|
||||
endef
|
||||
|
|
|
@ -158,6 +158,8 @@ $(call gb_UI_get_clean_target,$(1)) : $(call gb_Package_get_clean_target,$(1)_ui
|
|||
endif
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_UI_get_target,$(1)),$(call gb_UI_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),UI)
|
||||
|
||||
endef
|
||||
|
||||
# gb_UI__get_outdir_filename target file lang?
|
||||
|
|
|
@ -53,6 +53,7 @@ $(call gb_Package_get_preparation_target,$(1)_inc) : $(call gb_UnoApiHeadersTarg
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_UnoApi_get_target,$(1)),$(call gb_UnoApiTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_UnoApi_get_target,$(1)),$(call gb_UnoApi_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),UnoApi)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ $(call gb_UnoApiTarget_get_headers_target,$(1)) : $(gb_Helper_MISCDUMMY)
|
|||
$(call gb_Deliver_add_deliverable,$(call gb_UnoApiMerge_get_target,$(1)),$(call gb_UnoApiTarget_get_target,$(1)),$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_UnoApiMerge_get_target,$(1)),$(call gb_UnoApiMerge_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),UnoApiMerge)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -220,6 +220,7 @@ define gb_UnpackedTarball_UnpackedTarball
|
|||
$(call gb_UnpackedTarball_UnpackedTarball_internal,$(1))
|
||||
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_UnpackedTarball_get_final_target,$(1)),$(call gb_UnpackedTarball_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),UnpackedTarball)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ gb_WinResTarget_DEFAULTDEFS := $(gb_RCDEFS)
|
|||
define gb_WinResTarget_WinResTarget
|
||||
$(call gb_WinResTarget_WinResTarget_init,$(1))
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_WinResTarget_get_target,$(1)),$(call gb_WinResTarget_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),WinResTarget)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@ define gb_Zip_Zip
|
|||
$(call gb_Zip_Zip_internal,$(1),$(2))
|
||||
|
||||
$(eval $(call gb_Module_register_target,$(call gb_Zip_get_final_target,$(1)),$(call gb_Zip_get_clean_target,$(1))))
|
||||
$(call gb_Helper_make_userfriendly_targets,$(1),Zip)
|
||||
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue