From c1d2c903396f484ab67be0a1e47cbd63d3357185 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Thu, 2 Mar 2023 22:21:16 -0800 Subject: Use Makefile --- build | 7 +++++-- neo2/Makefile | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 neo2/Makefile diff --git a/build b/build index e4049f3..38d66c2 100755 --- a/build +++ b/build @@ -1,5 +1,8 @@ #!/bin/sh set -e +DISTDIR=$(pwd)/dist/ +export DISTDIR + mkdir dist/projs export NODE_OPTIONS=--openssl-legacy-provider @@ -12,9 +15,9 @@ cd .. mv projs/dist/* dist/projs cd neo2/ -make4ht -x -f xhtml index.tex +make +make install cd .. -mv neo2/*.html neo2/*.css neo2/*.gif neo2/*.png neo2/*.jpg dist/ mv acron dist/ diff --git a/neo2/Makefile b/neo2/Makefile new file mode 100644 index 0000000..47998d9 --- /dev/null +++ b/neo2/Makefile @@ -0,0 +1,9 @@ +.POSIX: +index.html: index.tex + make4ht -x -f xhtml index.tex + +install: + cp *.html *.css *.gif *.png *.jpg $(DISTDIR)/ + +clean: + rm -f *.html index*css *.4ct *.4tc *.aux. *.idv *.lg *.log *.tmp *.xdv *.xref -- cgit v1.2.3