summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2023-03-02 22:25:27 -0800
committerTrumeet <yuuta@yuuta.moe>2023-03-02 22:25:27 -0800
commitcab68c65c3c6f34a123f589f9d02a7cc697a9251 (patch)
tree1bb86976f531d7b2ff7c040bfb4c5411935be223
parentc1d2c903396f484ab67be0a1e47cbd63d3357185 (diff)
downloadwww-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar
www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar.gz
www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar.bz2
www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.zip
Use Makefile x2
-rwxr-xr-xbuild10
-rw-r--r--projs/Makefile8
2 files changed, 11 insertions, 7 deletions
diff --git a/build b/build
index 38d66c2..cb3f805 100755
--- a/build
+++ b/build
@@ -2,17 +2,13 @@
set -e
DISTDIR=$(pwd)/dist/
export DISTDIR
-
-mkdir dist/projs
-
export NODE_OPTIONS=--openssl-legacy-provider
cd projs/
-yarn install
-yarn build
-sed -i "s/\/assets/assets/g" dist/index.html
+make
+mkdir dist/projs
+DISTDIR=$DISTDIR/projs/ make install
cd ..
-mv projs/dist/* dist/projs
cd neo2/
make
diff --git a/projs/Makefile b/projs/Makefile
new file mode 100644
index 0000000..2feef7f
--- /dev/null
+++ b/projs/Makefile
@@ -0,0 +1,8 @@
+.POSIX:
+all:
+ yarn install
+ yarn build
+ sed -i "s/\/assets/assets/g" dist/index.html
+
+install:
+ cp -r dist/* $(DISTDIR)/