mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
Introduce Makefile
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
.PHONY: default rest-server clean
|
||||||
|
|
||||||
|
default: rest-server
|
||||||
|
|
||||||
|
rest-server:
|
||||||
|
go run build.go
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f rest-server
|
||||||
@@ -29,10 +29,10 @@ repository directory:
|
|||||||
|
|
||||||
### From source
|
### From source
|
||||||
|
|
||||||
Run ```go run build.go```, afterwards you'll find the binary in the current directory. You can move it anywhere you
|
Run ```make```, afterwards you'll find the binary in the current directory. You can move it anywhere you want. There's
|
||||||
want. There's also an [example systemd service
|
also an [example systemd service file](https://github.com/restic/rest-server/blob/master/etc/rest-server.service)
|
||||||
file](https://github.com/restic/rest-server/blob/master/etc/rest-server.service) included, so you can get it up &
|
included, so you can get it up & running as a proper service in no time. Of course, you can also test it from the
|
||||||
running as a proper service in no time. Of course, you can also test it from the command line.
|
command line.
|
||||||
|
|
||||||
```
|
```
|
||||||
% go run build.go
|
% go run build.go
|
||||||
|
|||||||
Reference in New Issue
Block a user