forked from toggl/track-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 1.02 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
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 --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d\ -f2- > AUTHORS
@echo "Seems to not work for some reason. Copy manually the command from Makefile"
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 .