Skip to content

Commit

Permalink
Add an Installer (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray authored Apr 16, 2024
1 parent 00c1c7f commit 1c725b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Could change it to /usr/local/bin or something, but run as sudo.
PREFIX := $(HOME)/bin

# Add binaries here to have them installed.
BINARIES := build \
deploy \
restart \
ui-preview \
clean-images

.PHONY: install
install: $(BINARIES)
for binary in $(BINARIES); do install -m 0755 $${binary} $(PREFIX); done
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ Test a functional change:
build && restart
```

## Installation

Run:

```shell
make install
```

**NOTE**: This defaults to ~/bin, you can set `PREFIX` to modify this.

## Contribution

Be aware you need to run `shellcheck` and pass before acceptance.

0 comments on commit 1c725b2

Please sign in to comment.