8000 Add make install task · yorickpeterse/clogs@3fbbc6c · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Add make install task
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Jun 29, 2024
1 parent d648fca commit 3fbbc6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
PREFIX := /usr
BINDIR := ${PREFIX}/bin
DATADIR := ${PREFIX}/share

.check-version:
@test $${VERSION?The VERSION variable must be set}

build:
inko pkg sync
inko build -o ./build/clogs

${DESTDIR}${BINDIR}/clogs:
install -D --mode=755 build/clogs "${@}"

install: build ${DESTDIR}${BINDIR}/clogs

uninstall:
rm --force ${BINDIR}/clogs

release/version: .check-version
sed -E -i -e "s/^let VERSION = '([^']+)'$$/let VERSION = '${VERSION}'/" \
src/clogs/cli.inko
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ Generating changelogs comes with the following workflow requirements:
To build from source:

```
inko build -o build/clogs
make install PREFIX=~/.local
```

This installs the executable into `~/.local/bin/clogs`.

If you're using Arch Linux, [an AUR
package](https://aur.archlinux.org/packages/git-clogs) is also available:

Expand Down

0 comments on commit 3fbbc6c

Please sign in to comment.
0