add exception when not in virtual env

pull/297/head
guidotheelen 2020-05-07 13:25:10 +02:00
parent 495a77d727
commit db01fa994a
1 changed files with 6 additions and 1 deletions

View File

@ -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"