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
memfd
Manos Pitsidianakis 2020-07-26 02:40:01 +03:00
parent 70a4409e59
commit 3152411f22
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 7 additions and 4 deletions

View File

@ -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:

View File

@ -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`