makefile changes

pull/202/head
Harvey Tindall 3 years ago
parent 49c873c858
commit a8daa2c77e
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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)/

Loading…
Cancel
Save