forked from wellington/wellington
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (32 loc) · 1.42 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
.PHONY: test
current_dir = $(shell pwd)
rmnpath = "/Users/drew/work/rmn"
echo:
echo $(current_dir)
home:
go run sprite/main.go -gen ~/work/rmn/www/gui/build/im -b ~/work/rmn/www/gui/build/css/ -p ~/work/rmn/www/gui/sass -d ~/work/rmn/www/gui/im/sass ~/work/rmn/www/gui/sass/_pages/home.scss
profile:
go install github.com/drewwells/sprite_sass/sprite
sprite --cpuprofile=sprite.prof -gen ~/work/rmn/www/gui/build/im -b ~/work/rmn/www/gui/build/css/ -p ~/work/rmn/www/gui/sass -d ~/work/rmn/www/gui/im/sass ~/work/rmn/www/gui/**/*.scss
go tool pprof --png $(GOPATH)/bin/sprite sprite.prof > profile.png
open profile.png
deps:
scripts/getdeps.sh
headers:
scripts/getheaders.sh
build:
docker build -t sprite .
docker:
docker run -it -v $(rmnpath):/rmn -v $(current_dir):/usr/src/myapp sprite bash
dockerprofile:
docker run -it -v $(rmnpath):/rmn -v $(current_dir):/usr/src/myapp sprite make dockerexec
dockerexec:
go run sprite/main.go -gen /rmn/www/gui/build/im --cpuprofile=sprite.prof -b /rmn/www/gui/build/css/ -p /rmn/www/gui/sass -d /rmn/www/gui/im/sass /rmn/www/gui/**/*.scss
go tool pprof --pdf /usr/bin/sprite sprite.prof > profile.pdf
test:
scripts/goclean.sh
compass:
cd ~/work/rmn && grunt clean && time grunt build_css
swift:
time go run sprite/main.go -gen ~/work/rmn/www/gui/build/im -b ~/work/rmn/www/gui/build/css/ -p ~/work/rmn/www/gui/sass -d ~/work/rmn/www/gui/im/sass ~/work/rmn/www/gui/**/*.scss
time: compass swift