]> granicus.if.org Git - nethack/commitdiff
update to new build system
authorAdam Powers <apowers@ato.ms>
Mon, 19 Oct 2020 18:49:34 +0000 (11:49 -0700)
committerAdam Powers <apowers@ato.ms>
Mon, 19 Oct 2020 18:49:34 +0000 (11:49 -0700)
sys/libnh/test/run.sh

index b89ab55d9ed22994c41cecd8295eaf32e1948c58..e930684c4056c2f62f8497f4e3720be698df6f07 100755 (executable)
@@ -2,11 +2,13 @@
 
 if [ x$1 == "xlib" ]; then
     echo Doing lib...
-    make spotless
-    cd sys/lib
+    if [ -f Makefile ]; then
+        make spotless
+    fi
+    cd sys/unix
     ./setup.sh hints/macOS.2020
     cd ../..
-    make
+    make WANT_LIBNH=1
 fi
 
 if [ x$1 == "xrunlib" ]; then
@@ -19,15 +21,17 @@ fi
 
 if [ x$1 == "xwasm" ]; then
     echo Doing wasm...
-    make spotless
-    cd sys/lib
-    ./setup.sh hints/wasm
+    if [ -f Makefile ]; then
+        make spotless
+    fi
+    cd sys/unix
+    ./setup.sh hints/macOS.2020
     cd ../..
-    make
+    make CROSS_TO_WASM=1
 fi
 
 if [ x$1 == "xrunwasm" ]; then
-    cd sys/lib/npm-package && node test/test.js
+    cd sys/lib/npm-package && npm run build && node test/test.js
 fi
 
 if [ x$1 == "xbin" ]; then