mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Generate git-rev file at compile time.
The file git-rev containing the program's version should be generated at kpdfview compile time rather than package generation time. Conflicts: Makefile
This commit is contained in:
committed by
Qingping Hou
parent
78c7007f43
commit
cbfa0d5344
6
Makefile
6
Makefile
@@ -109,7 +109,9 @@ POPENNSLIB := $(POPENNSDIR)/libpopen_noshell.a
|
||||
|
||||
all: kpdfview
|
||||
|
||||
VERSION?=$(shell git describe HEAD)
|
||||
kpdfview: kpdfview.o einkfb.o pdf.o blitbuffer.o drawcontext.o input.o $(POPENNSLIB) util.o ft.o lfs.o mupdfimg.o $(MUPDFLIBS) $(THIRDPARTYLIBS) $(LUALIB) djvu.o $(DJVULIBS) cre.o $(CRENGINELIBS)
|
||||
echo $(VERSION) > git-rev
|
||||
$(CC) \
|
||||
$(CFLAGS) \
|
||||
kpdfview.o \
|
||||
@@ -250,7 +252,6 @@ INSTALL_DIR=kindlepdfviewer
|
||||
|
||||
LUA_FILES=reader.lua
|
||||
|
||||
VERSION?=$(shell git describe HEAD)
|
||||
customupdate: all
|
||||
# ensure that build binary is for ARM
|
||||
file kpdfview | grep ARM || exit 1
|
||||
@@ -258,12 +259,11 @@ customupdate: all
|
||||
rm -f kindlepdfviewer-$(VERSION).zip
|
||||
rm -rf $(INSTALL_DIR)
|
||||
mkdir -p $(INSTALL_DIR)/{history,screenshots}
|
||||
echo $(VERSION) > $(INSTALL_DIR)/git-rev
|
||||
cp -p README.md COPYING kpdfview kpdf.sh $(LUA_FILES) $(INSTALL_DIR)
|
||||
mkdir $(INSTALL_DIR)/data
|
||||
cp -rpL data/*.css $(INSTALL_DIR)/data
|
||||
cp -rpL fonts $(INSTALL_DIR)
|
||||
cp -r resources $(INSTALL_DIR)
|
||||
cp -r git-rev resources $(INSTALL_DIR)
|
||||
cp -rpL frontend $(INSTALL_DIR)
|
||||
mkdir $(INSTALL_DIR)/fonts/host
|
||||
zip -9 -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ kite/
|
||||
|
||||
Reference in New Issue
Block a user