[beast: 24/70] EBEAST: check for 'make npm' and ./node_modules/ before 'make run'



commit 9b370160ef13b196cab1af601be6b169e3cd20d0
Author: Tim Janik <timj gnu org>
Date:   Tue Feb 21 14:48:02 2017 +0100

    EBEAST: check for 'make npm' and ./node_modules/ before 'make run'
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/Makefile.am |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ebeast/Makefile.am b/ebeast/Makefile.am
index 1c68e04..75cf1ad 100644
--- a/ebeast/Makefile.am
+++ b/ebeast/Makefile.am
@@ -23,13 +23,17 @@ node_modules/: npm
 clean-node_modules:
        rm -rf node_modules/
 npmclean: clean-node_modules clean
+check-npm:
+       $(Q) test -d ./node_modules/ || { \
+        echo "make $(MAKECMDGOALS): error: missing ./node_modules/ - first 'make npm'" ; \
+        false ; }
 
 # == app ==
-app:
+app:   check-npm
        $(Q) $(MAKE) $(AM_MAKEFLAGS) -C v8bse v8bse.node
 
 # == run ==
-run: app       # requires: npm
+run: app
        LD_PRELOAD="$(abs_top_builddir)/bse/.libs/libbse-@MAJOR@.so" \
        ./node_modules/electron/dist/electron .
 # NOTE, prefer LD_PRELOAD over LD_LIBRARY_PATH, to pick up $(builddir)/libbse *before* /usr/lib/libbse


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]