Browse Source

make install

Thomas Jost 3 years ago
parent
commit
a5d4ed6848
Signed by: Thomas Jost <schnouki@schnouki.net> GPG Key ID: 3F3B990246141762
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Makefile

+ 6
- 1
Makefile View File

@@ -2,7 +2,9 @@ PACKAGE = islas
2 2
 GOPATH  = $(CURDIR)/.gopath
3 3
 BASE    = $(GOPATH)/src/$(PACKAGE)
4 4
 
5
-.PHONY: all clean
5
+PREFIX ?= $(HOME)
6
+
7
+.PHONY: all clean install
6 8
 all: islas
7 9
 
8 10
 clean:
@@ -19,3 +21,6 @@ vendor: $(BASE) vendor/.ok
19 21
 vendor/.ok:
20 22
 	glide install
21 23
 	@touch vendor/.ok
24
+
25
+install: islas
26
+	install -Dm755 islas $(PREFIX)/bin/islas

Loading…
Cancel
Save