-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (34 loc) · 1.15 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
build:
coffee -c ./chrome-extension/*.coffee ./server/server.coffee
auto:
coffee -w -c .
install:
sudo npm install -g .
# Run a test version of the server. It uses a different port from the default
# port, so it doesn't conflict with the live server. Note that you'll have to
# set the port and the secret below within the extension.
run-server:
TEXT_AID_TOO_SECRET=hul8quahJ4eeL1Ib \
TEXT_AID_TOO_EDITOR="urxvt -T textaid -geometry 90x25-50+15 -e vim" \
coffee server/server.coffee --port 9294 --markdown
help-text:
coffee server/server.coffee -h
# This target is probably of interest to smblott only.
pack-extension:
$(MAKE) build
google-chrome \
--pack-extension=$(PWD)/chrome-extension \
--pack-extension-key="$(HOME)/local/sbenv/ssh/text-aid-too.pem"
ls -l chrome-extension.crx
mv -v chrome-extension.crx $(HOME)/storage/google-drive/Extensions/text-aid-too.crx
.PHONY: build auto pack-extension pack run-server install help-text publish
# For Chrome Store.
pack:
$(MAKE) build
zip -r text-aid-too.zip chrome-extension \
-x '*'.coffee \
-x chrome-extension/icons/icon-512.png
# For npm.
publish:
$(MAKE) build
npm publish