bump product version to 4.1.6.2
[LibreOffice.git] / odk / CustomTarget_check.mk
blobfb5b2d5aa34a2a16422f55c0627323f8dcf6ceca
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,\
13 autodoc \
14 checkbin \
17 odk_PLATFORM := $(if $(filter WNT,$(OS)),\
18 $(if $(filter GCC,$(COM)),mingw,windows),\
19 $(if $(filter SOLARIS,$(OS)),\
20 $(if $(filter SPARC,$(CPUNAME)),solsparc,\
21 $(if $(filter U,$(CPU)),solsparc64,solintel)),\
22 $(if $(filter LINUX,$(OS)),linux,\
23 $(if $(filter NETBSD,$(OS)),netbsd,\
24 $(if $(filter FREEBSD,$(OS)),freebsd,\
25 $(if $(filter DRAGONFLY,$(OS)),dragonfly,\
26 $(if $(filter MACOSX,$(OS)),macosx,\
27 $(if $(filter AIX,$(OS)),aix))))))))
29 $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \
30 $(SRCDIR)/odk/util/check.pl \
31 $(if $(DOXYGEN),$(call gb_GeneratedPackage_get_target,odk_cpp_docs)) \
32 $(call gb_Package_get_target,odk_bin) \
33 $(if $(filter WNT,$(OS)),$(call gb_Package_get_target,odk_cli)) \
34 $(call gb_Package_get_target,odk_config) \
35 $(if $(filter WNT,$(OS)),\
36 $(call gb_Package_get_target,odk_config_win),\
37 $(call gb_Package_get_target,odk_config_notwin) \
38 ) \
39 $(call gb_Package_get_target,odk_docs) \
40 $(call gb_Package_get_target,odk_html) \
41 $(if $(SOLAR_JAVA),$(call gb_Package_get_target,odk_javadoc)) \
42 $(call gb_Package_get_target,odk_lib) \
43 $(if $(filter MACOSX,$(OS)),$(call gb_Package_get_target,odk_macosx)) \
44 $(call gb_Package_get_target,odk_settings) \
45 $(call gb_Package_get_target,odk_settings_generated) \
46 $(call gb_Package_get_target,odk_uno_loader_classes) \
47 $(if $(SOLAR_JAVA),$(call gb_Package_get_target,odk_unowinreg)) \
48 $(call gb_PackageSet_get_target,odk_autodoc)
49 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
50 $(call gb_Helper_print_on_error,\
51 $(PERL) $< \
52 $(INSTDIR)/$(gb_Package_SDKDIRNAME) \
53 $(odk_PLATFORM) "$(gb_Executable_EXT)" \
54 ,$@.log \
57 .PHONY : $(call gb_CustomTarget_get_workdir,odk/check)/autodoc
58 $(call gb_CustomTarget_get_workdir,odk/check)/autodoc : $(call gb_PackageSet_get_target,odk_autodoc)
59 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
60 ( \
61 c=0 && \
62 for m in `find $(call gb_CustomTarget_get_workdir,odk/docs/common/ref) -name module-ix.html`; do \
63 m=`echo $$m | sed -e s@$(call gb_CustomTarget_get_workdir,odk/docs/common/ref)/@@` && \
64 mm=$(INSTDIR)/$(gb_Package_SDKDIRNAME)/docs/common/ref/$${m} && \
65 if [ ! -e $${mm} ]; then \
66 c=`expr $$c + 1`; \
67 echo "autodoc check: $${mm} not found. Please update odk/Package_autodoc.mk ."; \
68 fi \
69 done && \
70 if [ $${c} -gt 0 ]; then exit 1; fi \
73 # vim: set noet sw=4 ts=4: