diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-26 02:40:01 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-26 16:09:41 +0300 |
commit | 3152411f229950bcbb71aad35b707c3890c208e1 (patch) | |
tree | e2f16a44fd07c0e3702cea125c085c93f5c7f979 /Makefile | |
parent | 70a4409e59ad4ca0b376563430aca5f953a55960 (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |