From f9ee2449c7923df75b75961a50cea64990585fa3 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 1 Aug 2024 07:06:39 +0000 Subject: [PATCH] make: handle old build data directory (#12259) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index aed1af8f6..e9d62d524 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,7 @@ endif install -d $(INSTALL_DIR)/koreader/{screenshots,fonts/host,ota} # Note: the data dir is distinct from the one in base/build/…! @echo "[*] Install data files" + ! test -L $(INSTALL_DIR)/koreader/data || rm $(INSTALL_DIR)/koreader/data install -d $(INSTALL_DIR)/koreader/data $(SYMLINK) $(OUTPUT_DIR_DATAFILES) $(CR3GUI_DATADIR_FILES) $(INSTALL_DIR)/koreader/data/ ifneq (,$(IS_RELEASE))