Permalink
Browse files

Reshuffle the Makefile

  • Loading branch information...
1 parent 301cbb2 commit a057d6f1f5743fa8ee9a213a40287e1151fc2025 @gsamokovarov committed Apr 18, 2017
Showing with 14 additions and 5 deletions.
  1. +14 −5 Makefile
View
@@ -6,14 +6,23 @@ LICENSE = MIT
VERSION = 0.13.0
+.PHONY: build
build:
@go build -o jump
+.PHONY: test
+test:
+ @go test ./... -cover
+
+.PHONY: lint
lint:
@go vet ./... && golint ./...
-# Package deb and rpm inside of a Linux virtual machine, because of the
-# user.Current() usage we have. It doesn't work cross-compiled from OSX.
+# Package deb and rpm inside of a Linux virtual machine, because of
+# the user.Current() usage we have. It doesn't work cross-compiled
+# from OSX.
+
+.PHONY: deb
deb: build
@fpm -s dir -t deb -n $(NAME) -v $(VERSION) -a amd64 \
--deb-compression bzip2 \
@@ -25,6 +34,7 @@ deb: build
./jump=/usr/bin/jump \
./man/jump.1=/usr/share/man/man1/jump.1
+.PHONY: rpm
rpm: build
@fpm -s dir -t rpm -n $(NAME) -v $(VERSION) -a amd64 \
--rpm-compression bzip2 \
@@ -36,11 +46,10 @@ rpm: build
./jump=/usr/bin/jump \
./man/jump.1=/usr/share/man/man1/jump.1
+.PHONY: clean
clean:
@rm -f jump*
-test:
- @go test ./... -cover
-
+.PHONY: man
man:
@ronn ./man/jump.1.ronn

0 comments on commit a057d6f

Please sign in to comment.