forked from toggl/track-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 891 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
default: lint
lint: node_modules/.bin/jslint
@$< src/scripts/*.js src/scripts/content/*.js
node_modules/.bin/jslint:
npm install
dist: clean
@if [ ! -d "out" ]; then mkdir -p out; fi
@cp -R src/manifest.json src/images src/scripts src/styles src/html src/sounds out/
@cd out && find . -path '*/.*' -prune -o -type f -print | zip ../ch_toggl-button.zip -@
@rm -rf out
clean:
@if [ -f "ch_toggl-button.zip" ]; then rm ch_toggl-button.zip; fi
@if [ -f "ff_toggl-button.zip" ]; then rm ff_toggl-button.zip; fi
authors:
git log --all --format='%aN <%cE>' | sort -u > AUTHORS
ff-dist: clean
@if [ ! -d "out" ]; then mkdir -p out; fi
@cp src/manifest_ff.json src/manifest.json
@cp -R src/manifest.json src/images src/scripts src/styles src/html src/sounds out/
@cd out && find . -path '*/.*' -prune -o -type f -print | zip ../ff_toggl-button.zip -@
@rm -rf out
@git checkout .