-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 821 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CALIBRE_PATH := /Applications/calibre.app/Contents/MacOS
PLUGIN_NAME := remarkable_sync
VERSION := $(shell grep "^ version = " __init__.py | grep -o "([0-9], [0-9], [0-9])" | tr -d '() ' | tr ',' '.')
.PHONY: install run dev clean dist
install:
$(CALIBRE_PATH)/calibre-customize -b .
run:
$(CALIBRE_PATH)/calibre-debug -g
dev: install run
dist: clean
@echo "Building $(PLUGIN_NAME)-$(VERSION).zip"
zip -r $(PLUGIN_NAME)-$(VERSION).zip \
__init__.py \
ui.py \
main.py \
worker.py \
remarkable.py \
config.py \
plugin-import-name-remarkable_sync.txt \
images/
@echo "Created $(PLUGIN_NAME)-$(VERSION).zip"
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
rm -f $(PLUGIN_NAME)-*.zip 2>/dev/null || true