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/.
9 $(eval
$(call gb_CustomTarget_CustomTarget
,net_oootypes
))
11 net_ure_DIR
:= $(gb_CustomTarget_workdir
)/net_ure
12 net_oootypes_DIR
:= $(gb_CustomTarget_workdir
)/net_ure
/net_oootypes
14 $(call gb_CustomTarget_get_target
,net_oootypes
) : $(net_ure_DIR
)/net_oootypes.done
16 $(net_ure_DIR
)/net_oootypes.done
: \
17 $(call gb_UnoApi_get_target
,offapi
) \
18 $(call gb_UnoApi_get_target
,udkapi
) \
19 $(call gb_Executable_get_target
,netmaker
) \
20 $(call gb_Executable_get_runtime_dependencies
,netmaker
) \
21 |
$(net_oootypes_DIR
)/.
dir
22 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),NET
,4)
23 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),NET
)
24 $(call gb_Helper_abbreviate_dirs
, \
25 rm -r
$(net_oootypes_DIR
) && \
26 $(call gb_Helper_execute
,netmaker
-v
-O
$(net_oootypes_DIR
) \
27 -X
$(call gb_UnoApi_get_target
,udkapi
) \
28 $(call gb_UnoApi_get_target
,offapi
) > $@.log
2>&1 || \
32 && echo
"net_oootypes failed to generate. To retry, use:" \
33 && echo
" make CustomTarget_net_oootypes" \
34 && echo
"cd into the net_ure/ directory to run make faster" \
38 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),NET
)
40 # vim: set noet sw=4 ts=4: