1diff --git a/Makefile b/Makefile
2index 17e424db62b5ef0e9004443ef74860eda86f84ce..c235179e4f8088760a7a6fc842a3c5a2814fa6d6 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -1,19 +1,26 @@
6-GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
7-LDFLAGS := "-X 'git.gabrielgio.me/cerrado/templates.Slug=.$(GIT_COMMIT)' -s -w"
8+GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
9+LDFLAGS := "-X 'git.gabrielgio.me/cerrado/templates.Slug=.$(GIT_COMMIT)' -s -w"
10
11-TEMPLATES_DIR := templates
12-TEMPLATES := $(wildcard $(TEMPLATES_DIR)/*.qtpl)
13-GO_TEMPLATES_FILES := $(TEMPLATES:.qtpl=.qtpl.go)
14+BIN ?= cerrado
15+PREFIX ?= /usr/local
16+BINDIR ?= $(PREFIX)/bin
17
18-SASS_DIR := scss
19-CSS_DIR := static
20-OUTPUT_CSS := $(CSS_DIR)/main.$(GIT_COMMIT).css
21-SASS_FILES := $(wildcard $(SASS_DIR)/*.scss)
22+TEMPLATES_DIR := templates
23+TEMPLATES := $(wildcard $(TEMPLATES_DIR)/*.qtpl)
24+GO_TEMPLATES_FILES := $(TEMPLATES:.qtpl=.qtpl.go)
25+
26+SASS_DIR := scss
27+CSS_DIR := static
28+OUTPUT_CSS := $(CSS_DIR)/main.$(GIT_COMMIT).css
29+SASS_FILES := $(wildcard $(SASS_DIR)/*.scss)
30
31 build: sass tmpl
32 go build \
33 -ldflags=$(LDFLAGS) \
34- -o bin/cerrado
35+ -o bin/$(BIN)
36+
37+install:
38+ install -Dm755 bin/$(BIN) $(BINDIR)/$(BIN)
39
40 run: sass tmpl
41 go run .
42@@ -34,5 +41,6 @@ qtc $(TEMPLATES_DIR)/$*.qtpl
43
44 clean:
45 rm -f $(OUTPUT_CSS)
46+ rm bin/$(BIN)
47
48 .PHONY: sass tmpl
49diff --git a/README.md b/README.md
50index 267a30614fe7430b180885880a2a907d758a2368..ec8ee174a283c4aae815b5c99f1a7b8095542f0a 100644
51--- a/README.md
52+++ b/README.md
53@@ -27,12 +27,24 @@ To run the project you just need to do a make run.
54
55 ### Installations
56
57-The only installation process available so far is through my apk
58-repository[^2][^3].
59+One installation process available is through my apk repository[^2][^3].
60
61-You can check openrc files for the details how it is run, but in general you'd
62-need the cerrado binary and scfg file. I can easily be integration with
63-systemd.
64+You could also run:
65+
66+```sh
67+make
68+make install
69+```
70+
71+Or you could also pick another prefix:
72+
73+```sh
74+PREFIX=$HOME/.local/ make install
75+```
76+
77+You can check openrc files for the details how it is run with a init system,
78+but in general you'd need the cerrado binary and scfg file, which can easily be
79+integrated with systemd.
80
81 ### Contributing
82