Skip to content

Commit

Permalink
Refactor the Makefile a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Jun 30, 2024
1 parent e8fe5b8 commit 37b9c9f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ build:
inko pkg sync
inko build --define "idoc.cmd.ASSETS=$$(realpath ${ASSETS})" -o ./build/idoc

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

${DESTDIR}${ASSETS}:
mkdir -p "${@}"
cp --recursive assets/* "${@}"

install: build ${DESTDIR}${BINDIR}/idoc ${DESTDIR}${ASSETS}
install: build
install -D --mode=755 build/idoc ${DESTDIR}${BINDIR}/idoc
mkdir -p ${DESTDIR}${ASSETS}
cp --recursive assets/* ${DESTDIR}${ASSETS}

uninstall:
rm --force ${BINDIR}/idoc
Expand All @@ -43,5 +39,5 @@ release/tag: .check-version

release: release/version release/changelog release/commit release/tag

.PHONY: build
.PHONY: build install uninstall
.PHONY: release/version release/changelog release/commit release/tag release

0 comments on commit 37b9c9f

Please sign in to comment.