Browse Source

Fix Makefile semantics

Makefile targets didn't correspond to the widely used ones:

- make should build meli instead of showing help
- make check should run tests

Closes #42
master
Manos Pitsidianakis 1 year ago
parent
commit
3152411f22
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 9
      Makefile
  2. 2
      README.md

9
Makefile

@ -44,6 +44,9 @@ GREEN ?= `[ -z $${NO_COLOR+x} ] && ([ -z $${TERM} ] && echo "" || tput setaf 2)
.POSIX:
.SUFFIXES:
meli: check-deps
@${CARGO_BIN} build ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" ${FEATURES} --release
help:
@echo "For a quick start, build and install locally:\n ${BOLD}${GREEN}PREFIX=~/.local make install${ANSI_RESET}\n"
@echo "Available subcommands:"
@ -79,9 +82,9 @@ help:
@echo ${ANSI_RESET}
@#@echo "* CARGO_COLOR = ${CARGO_COLOR}"
meli: check-deps
@${CARGO_BIN} build ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" ${FEATURES} --release
.PHONY: check
check:
@${CARGO_BIN} test ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" --workspace
.PHONY: check-deps
check-deps:

2
README.md

@ -33,7 +33,7 @@ to get it on your system can be found here: <https://doc.rust-lang.org/cargo/get
With Cargo available, the project can be built with
```sh
make meli
make
```
The resulting binary will then be found under `target/release/meli`

Loading…
Cancel
Save