1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

makefile changes

This commit is contained in:
Harvey Tindall 2022-01-30 18:03:21 +00:00
parent 49c873c858
commit a8daa2c77e
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -97,12 +97,12 @@ email:
typescript: typescript:
$(TYPECHECK) $(TYPECHECK)
$(adding dark variants to typescript) $(adding dark variants to typescript)
-rm -r tempts rm -rf tempts
cp -r ts tempts cp -r ts tempts
scripts/dark-variant.sh tempts scripts/dark-variant.sh tempts
scripts/dark-variant.sh tempts/modules scripts/dark-variant.sh tempts/modules
$(info compiling typescript) $(info compiling typescript)
-mkdir -p $(DATA)/web/js mkdir -p $(DATA)/web/js
$(ESBUILD) --bundle tempts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify $(ESBUILD) --bundle tempts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify
$(ESBUILD) --bundle tempts/pwr.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/pwr.js --minify $(ESBUILD) --bundle tempts/pwr.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/pwr.js --minify
$(ESBUILD) --bundle tempts/form.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/form.js --minify $(ESBUILD) --bundle tempts/form.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/form.js --minify
@ -125,7 +125,7 @@ compress:
upx --lzma build/jfa-go upx --lzma build/jfa-go
bundle-css: bundle-css:
-mkdir -p $(DATA)/web/css mkdir -p $(DATA)/web/css
$(info bundling css) $(info bundling css)
$(ESBUILD) --bundle css/base.css --outfile=$(DATA)/web/css/bundle.css --external:remixicon.css --minify $(ESBUILD) --bundle css/base.css --outfile=$(DATA)/web/css/bundle.css --external:remixicon.css --minify
npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/web/css/bundle.css $(TAILWIND) npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/web/css/bundle.css $(TAILWIND)
@ -149,7 +149,7 @@ copy:
$(info copying crash page) $(info copying crash page)
mv $(DATA)/crash.html $(DATA)/html/ mv $(DATA)/crash.html $(DATA)/html/
$(info copying static data) $(info copying static data)
-mkdir -p $(DATA)/web mkdir -p $(DATA)/web
cp -r static/* $(DATA)/web/ cp -r static/* $(DATA)/web/
$(info copying systemd service) $(info copying systemd service)
cp jfa-go.service $(DATA)/ cp jfa-go.service $(DATA)/