21 lines
387 B
Makefile
21 lines
387 B
Makefile
ifeq ($(PREFIX),)
|
|
PREFIX := /usr/local
|
|
endif
|
|
ifeq ($(LIBDIR),)
|
|
LIBDIR := /lib
|
|
endif
|
|
|
|
|
|
all: build
|
|
build: viewer
|
|
nuitka3 --follow-imports app.py -o tabletoplibrary
|
|
clean:
|
|
rm -f tabletoplibrary
|
|
rm -rf pdf.js minified app.build
|
|
viewer:
|
|
@sh ./makeviewer.sh
|
|
install:
|
|
install tabletoplibrary $(PREFIX)/bin/
|
|
mkdir -p $(LIBDIR)/tabletoplibrary
|
|
cp -r minified $(LIBDIR)/tabletoplibrary/
|