summaryrefslogtreecommitdiff
path: root/solenv/gbuild/Helper.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-06 16:58:58 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-10 14:06:01 +0000
commit28ae80a89dd44f32044a155a41c1106692feae61 (patch)
treec362faf09fdea691fabb0285fc0b51e2b3fb071c /solenv/gbuild/Helper.mk
parenta7320cbe406c0276a3c113a1adac93ed7a894dc2 (diff)
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>
Diffstat (limited to 'solenv/gbuild/Helper.mk')
-rw-r--r--solenv/gbuild/Helper.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk
index e1e5119b07ce..f81a6b4df561 100644
--- a/solenv/gbuild/Helper.mk
+++ b/solenv/gbuild/Helper.mk
@@ -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