From a94b9e498151f8b78bb71e86012062cc0e9b1cdd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 21 Mar 2022 10:23:33 +0300 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- Viewer/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Viewer/Makefile b/Viewer/Makefile index 8af863e0..390af287 100644 --- a/Viewer/Makefile +++ b/Viewer/Makefile @@ -179,14 +179,19 @@ VERSION := $(APP_VERSION) DATE := $(strip $(shell date "+%Y%m%d%H%M")) COMMIT := $(strip $(shell git rev-parse HEAD)) +# if node_modules does not exist, set FIRST_RUN to 1... +FIRST_RUN := $(if $(filter node_modules,$(wildcard *)),,1) + + # NOTE: running things via npx can slow things down when running make on a # clean repo... NPX := npx --yes + # Warn user... -IGNORE := $(if $(filter node_modules,$(wildcard *)),, \ +_ := $(if $(FIRST_RUN),\ $(info Missing ./node_modules/: Running make on a clean repository \ may take some time... ))