forked from mattn/jvgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 695 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 695 Bytes
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
VERSION=$(shell ./jvgrep --help 2>&1 | grep ^Version | sed 's/Version //')
all : jvgrep
jvgrep: jvgrep.go
go get -u -x github.com/daviddengcn/go-colortext
go get -u -x github.com/mattn/jvgrep/mmap
go build -x .
package: jvgrep.exe
-rm -r jvgrep-win32-$(VERSION)
-mkdir jvgrep-win32-$(VERSION)
cp jvgrep.exe jvgrep-win32-$(VERSION)/.
upx jvgrep-win32-$(VERSION)/jvgrep.exe
tar cv jvgrep-win32-$(VERSION) | gzip > jvgrep-win32-$(VERSION).tar.gz
-rm -r jvgrep-win32-$(VERSION)
upload:
github-upload jvgrep-win32-$(VERSION).tar.gz mattn/jvgrep
dist: jvgrep
git archive --format=tar --prefix=jvgrep-$(VERSION)/ HEAD | gzip > jvgrep-$(VERSION).tar.gz
clean :
go clean
-rm -f jvgrep