summaryrefslogtreecommitdiff
path: root/android/CustomTarget_lo4android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'android/CustomTarget_lo4android.mk')
-rw-r--r--android/CustomTarget_lo4android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/android/CustomTarget_lo4android.mk b/android/CustomTarget_lo4android.mk
index 30d0e1151e6a..651c435ff385 100644
--- a/android/CustomTarget_lo4android.mk
+++ b/android/CustomTarget_lo4android.mk
@@ -24,8 +24,12 @@ $(call gb_CustomTarget_get_target,android/lo4android) : \
$(lo4android_DIR)/done : $(docloader_DIR)/done
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,2)
cd $(SRCDIR)/android/experimental/LibreOffice4Android && $(MAKE) all
- mkdir -p $(WORKDIR)/installation/bin
- cp $(SRCDIR)/android/experimental/LibreOffice4Android/bin/*-debug.apk $(WORKDIR)/installation/bin
+# If SRCDIR==BUILDDIR, copy to $(SRCDIR)/instsetoo_native/$(INPATH)/bin as that is where the tinderbox build script
+# still looks for the .apk, and we want fresh daily builds to be uploaded.
+ if test $(SRCDIR) = $(BUILDDIR); then \
+ mkdir -p $(SRCDIR)/instsetoo_native/$(INPATH)/bin; \
+ cp $(SRCDIR)/android/experimental/LibreOffice4Android/bin/*-debug.apk $(SRCDIR)/instsetoo_native/$(INPATH)/bin; \
+ fi
$(call gb_CustomTarget_get_clean_target,android/lo4android) :
$(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),MAK,2)