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
/sdremote
))
11 sdremote_DIR
:= $(call gb_CustomTarget_get_workdir
,android
/sdremote
)
13 $(call gb_CustomTarget_get_target
,android
/sdremote
) : $(sdremote_DIR
)/done
16 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),MAK
,2)
17 cd
$(SRCDIR
)/android
/sdremote
&& $(MAKE
) all
18 # If SRCDIR==BUILDDIR, copy to $(SRCDIR)/instsetoo_native/$(INPATH)/bin as that is where the tinderbox build script
19 # still looks for the .apk, and we want fresh daily builds to be uploaded.
20 if
test $(SRCDIR
) = $(BUILDDIR
); then \
21 mkdir
-p
$(SRCDIR
)/instsetoo_native
/$(INPATH
)/bin
; \
22 cp
$(SRCDIR
)/android
/sdremote
/bin
/ImpressRemote-debug.apk
$(SRCDIR
)/instsetoo_native
/$(INPATH
)/bin
; \
25 $(call gb_CustomTarget_get_clean_target
,android
/sdremote
) :
26 $(call gb_Output_announce
,$(subst $(WORKDIR
)/Clean
/,,$@
),$(false
),MAK
,2)
27 cd
$(SRCDIR
)/android
/sdremote
&& $(MAKE
) clean
29 # vim: set noet sw=4 ts=4: