Attempt 1
This commit is contained in:
23
WebApp/Makefile
Normal file
23
WebApp/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Variables
|
||||
CSS_INPUT:=./src/layouts/styles/global.css
|
||||
CSS_OUTPUT:=./build/stylesheet.css
|
||||
NAME:=web-app
|
||||
|
||||
all: css
|
||||
|
||||
# Build Tailwind
|
||||
css: ./src/layouts/**/*.css ./src/layouts/**/*.tmpl
|
||||
npx tailwindcss -i $(CSS_INPUT) -o $(CSS_OUTPUT) --minify
|
||||
|
||||
# Build App
|
||||
go: ./src/main/*.go
|
||||
go build -o ./build/$(NAME) ./src/main.go
|
||||
|
||||
run: css go
|
||||
./build/$(NAME)
|
||||
|
||||
# Clear build
|
||||
clean:
|
||||
rm -rf ./build/$(NAME) ./build/stylesheet.css
|
||||
|
||||
.PHONY: run clean all
|
||||
Reference in New Issue
Block a user