Introduce Makefile

This commit is contained in:
Zlatko Čalušić
2017-10-04 22:17:34 +02:00
parent d5bbf6aac8
commit c091bdc8bb
2 changed files with 13 additions and 4 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
.PHONY: default rest-server clean
default: rest-server
rest-server:
go run build.go
clean:
rm -f rest-server

View File

@@ -29,10 +29,10 @@ repository directory:
### From source
Run ```go run build.go```, afterwards you'll find the binary in the current directory. You can move it anywhere you
want. There's also an [example systemd service
file](https://github.com/restic/rest-server/blob/master/etc/rest-server.service) included, so you can get it up &
running as a proper service in no time. Of course, you can also test it from the command line.
Run ```make```, afterwards you'll find the binary in the current directory. You can move it anywhere you want. There's
also an [example systemd service file](https://github.com/restic/rest-server/blob/master/etc/rest-server.service)
included, so you can get it up & running as a proper service in no time. Of course, you can also test it from the
command line.
```
% go run build.go