summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-07-26 02:40:01 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-07-26 16:09:41 +0300
commit3152411f229950bcbb71aad35b707c3890c208e1 (patch)
treee2f16a44fd07c0e3702cea125c085c93f5c7f979 /Makefile
parent70a4409e59ad4ca0b376563430aca5f953a55960 (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--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 206e8830..459963da 100644
--- a/Makefile
+++ b/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: