bin/lo-pack-sources: fix to work with submodules
[LibreOffice.git] / android / CustomTarget_lo4android.mk
blobb0703ed078443519d6c66d005634959dc7c753a3
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,android/lo4android))
11 lo4android_DIR := $(call gb_CustomTarget_get_workdir,android/experimental/LibreOffice4Android)
13 $(call gb_CustomTarget_get_target,android/lo4android) : \
14 $(lo4android_DIR)/done
16 # We know that CustomTarget_docloader.mk is included before this file in
17 # Module_android-mk, so docloader_DIR is defined. We want that to be built
18 # completely first, so that we can serialize Ant access to Bootstrap and
19 # abs-lib, which are used by LibreOffice4Android, DocumentLoader and
20 # sdremote. We don't want one Ant to be cleaning out one place while another
21 # is building stuff that depends on it. Yeah, this sucks
23 $(lo4android_DIR)/done : $(docloader_DIR)/done
24 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,1)
25 cd $(SRCDIR)/android/experimental/LibreOffice4Android && $(MAKE) clean && $(MAKE) all
26 mkdir -p $(SRCDIR)/instsetoo_native/$(INPATH)/bin
27 cp $(SRCDIR)/android/experimental/LibreOffice4Android/bin/*-debug.apk $(SRCDIR)/instsetoo_native/$(INPATH)/bin
29 # vim: set noet sw=4 ts=4: