forked from krydos/todoist-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 986 Bytes
/
Makefile
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
DIST_DIR=dist
VERSION=1.12.0
DROPBOX_DIR=~/Dropbox/projects/binaries
.PHONY: up
up:
cd src && npm start
.PHONY: build-all
build-all:
./node_modules/.bin/electron-builder --linux && \
./node_modules/.bin/electron-builder --win
.PHONY: archive-unpacked
archive-unpacked:
zip -r $(DIST_DIR)/todoist-linux.zip $(DIST_DIR)/linux-unpacked/*
.PHONY: copy-to-dropbox
copy-to-dropbox: archive-unpacked
cp $(DIST_DIR)/Todoist_$(VERSION)_amd64.deb $(DROPBOX_DIR)/Todoist.deb && \
cp $(DIST_DIR)/Todoist-$(VERSION).x86_64.rpm $(DROPBOX_DIR)/Todoist.rpm && \
cp $(DIST_DIR)/"Todoist $(VERSION).exe" $(DROPBOX_DIR)/Todoist.exe && \
cp $(DIST_DIR)/todoist-linux.zip $(DROPBOX_DIR)/todoist-linux.zip
.PHONY: set-version
set-version:
cd src && npm version $(VERSION)
.PHONY: list
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'