From db01fa994ace5b0bb5e9b8530a1c3aa41d147d1d Mon Sep 17 00:00:00 2001 From: guidotheelen Date: Thu, 7 May 2020 13:25:10 +0200 Subject: [PATCH] add exception when not in virtual env --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 20b75cfed..326f8f581 100644 --- a/Makefile +++ b/Makefile @@ -197,6 +197,11 @@ else @$(ZOPFLIPNG) -y "$<" "$@" 1> /dev/null 2>&1 endif +check-virtual-env: +ifeq (${VIRTUAL_ENV},) + @echo Please start your virtual environment, and run: "'pip install -r requirements.txt'". + @false +endif # Make 3.81 can endless loop here if the target is missing but no # prerequisite is updated and make has been invoked with -j, e.g.: @@ -214,7 +219,7 @@ endif @rm -f "$@" ttx "$<" -$(EMOJI).ttf: $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \ +$(EMOJI).ttf: check-virtual-env $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \ $(ALL_COMPRESSED_FILES) | check_vs_adder @$(PYTHON) $(EMOJI_BUILDER) $(SMALL_METRICS) -V $< "$@" "$(COMPRESSED_DIR)/emoji_u" @$(PYTHON) $(PUA_ADDER) "$@" "$@-with-pua"