From c091bdc8bb3115f91f8122d54acd6db48240c728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatko=20=C4=8Calu=C5=A1i=C4=87?= Date: Wed, 4 Oct 2017 22:17:34 +0200 Subject: [PATCH] Introduce Makefile --- Makefile | 9 +++++++++ README.md | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9640256 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +.PHONY: default rest-server clean + +default: rest-server + +rest-server: + go run build.go + +clean: + rm -f rest-server diff --git a/README.md b/README.md index 0a89d89..0560db4 100644 --- a/README.md +++ b/README.md @@ -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