diff options
author | Trumeet <yuuta@yuuta.moe> | 2023-03-02 22:25:27 -0800 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2023-03-02 22:25:27 -0800 |
commit | cab68c65c3c6f34a123f589f9d02a7cc697a9251 (patch) | |
tree | 1bb86976f531d7b2ff7c040bfb4c5411935be223 | |
parent | c1d2c903396f484ab67be0a1e47cbd63d3357185 (diff) | |
download | www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar.gz www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.tar.bz2 www-cab68c65c3c6f34a123f589f9d02a7cc697a9251.zip |
Use Makefile x2
-rwxr-xr-x | build | 10 | ||||
-rw-r--r-- | projs/Makefile | 8 |
2 files changed, 11 insertions, 7 deletions
@@ -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)/ |