From 369c00e1c1656fa3f8b96ba61a168c2f439ae017 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 21 Mar 2022 04:35:08 +0300 Subject: [PATCH] added initial run warning to makefile Signed-off-by: Alex A. Naanou --- Viewer/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Viewer/Makefile b/Viewer/Makefile index 926dac59..4fd47b93 100644 --- a/Viewer/Makefile +++ b/Viewer/Makefile @@ -169,6 +169,14 @@ SHELL := bash #export PATH := $(shell pwd)/node_modules/.bin/:$(PATH) +# Warn user... +# +# This is mainly due to npx needing to cache things... +IGNORE := $(if $(filter node_modules,$(wildcard *)),, \ + $(info Missing ./node_modules/: Running make on a clean repository \ + may take some time... )) + + # variables... @@ -188,8 +196,6 @@ COMMIT := $(strip $(shell git rev-parse HEAD)) # NOTE: running things via npx can slow things down when running make on a # clean repo... -# XXX this is mainly happening on getting electron version, need to -# avoid this... NPX := npx --yes