Skip to content

Commit

Permalink
Set the ASSETS variable in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Jun 24, 2024
1 parent f7927a6 commit 6fbd5c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
PREFIX := /usr

# The directory to store shared files in (e.g. the assets directory).
SHARE := ${PREFIX}/share/idoc

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

build:
inko pkg sync
inko build -o ./build/idoc
inko build --define 'idoc.cmd.ASSETS=${SHARE}/assets' -o ./build/idoc

release/version: .check-version
sed -E -i -e "s/^let VERSION = '([^']+)'$$/let VERSION = '${VERSION}'/" \
Expand Down

0 comments on commit 6fbd5c6

Please sign in to comment.