-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (21 loc) · 803 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
.PHONY: clean assets
all: darwin
release: assets
GOOS=linux GOARCH=amd64 go build -o build/tailor ./*.go
cd build && tar cvfz tailor_linux.tar.gz ./tailor
GOOS=darwin GOARCH=amd64 go build -o build/tailor ./*.go
cd build && tar cvfz tailor_darwin.tar.gz ./tailor
rm build/tailor
assets:
cd assets_src && browserify tailor.js -t babelify -o ../assets/tailor.js && uglifyjs -c -o ../assets/tailor.min.js ../assets/tailor.js
cleancss assets_src/tailor.css -o assets/tailor.css
cp assets_src/*.html assets/
go-bindata -ignore node_modules -ignore package.json -pkg main -o static.go assets/
linux: assets
GOOS=linux GOARCH=amd64 go build -o build/tailor ./*.go
darwin:
GOOS=darwin GOARCH=amd64 go build -o build/tailor ./*.go
install:
go install -o tailor ./*.go
clean:
rm build/tailor