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
tags/alpha-0.6.0
Manos Pitsidianakis 2 months ago
parent
commit
3152411f22
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 73627C2F690DF710
2 changed files with 7 additions and 4 deletions
  1. +6
    -3
      Makefile
  2. +1
    -1
      README.md

+ 6
- 3
Makefile 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:

+ 1
- 1
README.md View File

@ -33,7 +33,7 @@ to get it on your system can be found here:
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