summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-18 12:56:52 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-18 12:56:52 +0200
commit3c3ee92efb4c1285115bc2edf0adb4ce57cd69ad (patch)
tree6f5c5b95f2ed80a0d7fdd02a0048ff00cab1cb86 /Makefile
parenta5e272c36e07ee0d5b01253e5b91fe1727a2fb86 (diff)
Small Makefile prettification
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 00ec1422..e257468d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,16 @@
.POSIX:
.SUFFIXES:
meli:
- cargo build --features="$(MELI_FEATURES)" --release
+ cargo build $(FEATURES)--release
PREFIX=/usr/local
+ifdef MELI_FEATURES
+ FEATURES ?= --features="$(MELI_FEATURES)"
+else
+ FEATURES ?=
+endif
+
.PHONY: clean
clean: rm -ri ./target/