From c1ccff70adebc8df4d343d0907d08359d98742e9 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sat, 25 Aug 2012 22:52:12 +0800 Subject: [PATCH] minor adjustment for Makefile and document.lua --- Makefile | 4 ++-- frontend/document/document.lua | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d58ac18d1..e1ebefdbb 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ CXXFLAGS:=-O3 $(SYSROOT) LDFLAGS:= $(SYSROOT) ARM_CFLAGS:=-march=armv6 # use this for debugging: -#CFLAGS:=-O0 -g +#CFLAGS:=-O0 -g $(SYSROOT) DYNAMICLIBSTDCPP:=-lstdc++ ifdef STATICLIBSTDCPP @@ -217,7 +217,7 @@ customupdate: all cp -rpL data/*.css $(INSTALL_DIR)/data cp -rpL fonts $(INSTALL_DIR) cp -r resources $(INSTALL_DIR) - cp -r frontend $(INSTALL_DIR) + cp -rpL frontend $(INSTALL_DIR) mkdir $(INSTALL_DIR)/fonts/host zip -9 -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ kite/ rm -Rf $(INSTALL_DIR) diff --git a/frontend/document/document.lua b/frontend/document/document.lua index abb434d49..89a365607 100644 --- a/frontend/document/document.lua +++ b/frontend/document/document.lua @@ -70,6 +70,10 @@ function Document:new(o) return o end +-- override this method to open a document +function Document:init() +end + -- this might be overridden by a document implementation function Document:unlock(password) -- return true instead when the password provided unlocked the document