1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_CustomTarget_CustomTarget
,odk
/check))
12 $(eval
$(call gb_CustomTarget_register_targets
,odk
/check,\
16 odk_PLATFORM
:= $(if
$(filter WNT
,$(OS
)),windows
,\
17 $(if
$(filter SOLARIS
,$(OS
)),\
18 $(if
$(filter SPARC
,$(CPUNAME
)),solsparc
,\
19 $(if
$(filter SPARC64
,$(CPUNAME
)),solsparc64
,solintel
)),\
20 $(if
$(filter LINUX
,$(OS
)),linux
,\
21 $(if
$(filter NETBSD
,$(OS
)),netbsd
,\
22 $(if
$(filter FREEBSD
,$(OS
)),freebsd
,\
23 $(if
$(filter DRAGONFLY
,$(OS
)),dragonfly
,\
24 $(if
$(filter MACOSX
,$(OS
)),macosx
,\
25 $(if
$(filter AIX
,$(OS
)),aix
))))))))
27 .PHONY
: $(call gb_CustomTarget_get_workdir
,odk
/check)/checkbin
28 $(call gb_CustomTarget_get_workdir
,odk
/check)/checkbin
: \
29 $(SRCDIR
)/odk
/util
/check.pl \
30 $(if
$(DOXYGEN
),$(call gb_GeneratedPackage_get_target
,odk_doxygen
)) \
31 $(foreach exe
,$(if
$(filter WNT
,$(OS
)),$(if
$(filter-out ARM64
,$(CPUNAME
)),climaker
)) cppumaker \
32 idlc javamaker
$(if
$(SYSTEM_UCPP
),,ucpp
) uno-skeletonmaker unoapploader unoidl-check
,\
33 $(call gb_Executable_get_target
,$(exe
))) \
34 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,odk_cli
)) \
35 $(call gb_Package_get_target
,odk_config
) \
36 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,odk_config_win
)) \
37 $(call gb_Package_get_target
,odk_docs
) \
38 $(call gb_Package_get_target
,odk_html
) \
39 $(if
$(ENABLE_JAVA
),$(call gb_GeneratedPackage_get_target
,odk_javadoc
)) \
40 $(call gb_Package_get_target
,odk_settings
) \
41 $(call gb_Package_get_target
,odk_settings_generated
)
42 ifneq ($(gb_SUPPRESS_TESTS
),)
45 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CHK
,1)
46 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),CHK
)
47 $(call gb_Helper_print_on_error
,\
49 $(INSTDIR
)/$(SDKDIRNAME
) \
50 $(odk_PLATFORM
) '$(gb_Executable_EXT)' \
53 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),CHK
)
56 # vim: set noet sw=4 ts=4: