initial commit
This commit is contained in:
38
Makefile
Normal file
38
Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
# Makefile
|
||||
.PHONY: build
|
||||
|
||||
BINARY_NAME=oslstats
|
||||
|
||||
build:
|
||||
./scripts/generate-css-sources.sh && \
|
||||
tailwindcss -i ./pkg/embedfs/files/css/input.css -o ./pkg/embedfs/files/css/output.css && \
|
||||
go mod tidy && \
|
||||
templ generate && \
|
||||
go generate ./cmd/${BINARY_NAME} && \
|
||||
go build -ldflags="-w -s" -o ./bin/${BINARY_NAME}${SUFFIX} ./cmd/${BINARY_NAME}
|
||||
|
||||
run:
|
||||
make build
|
||||
./bin/${BINARY_NAME}${SUFFIX}
|
||||
|
||||
dev:
|
||||
./scripts/generate-css-sources.sh && \
|
||||
templ generate --watch &\
|
||||
air &\
|
||||
tailwindcss -i ./pkg/embedfs/files/css/input.css -o ./pkg/embedfs/files/css/output.css --watch
|
||||
|
||||
clean:
|
||||
go clean
|
||||
|
||||
genenv:
|
||||
make build
|
||||
./bin/${BINARY_NAME} --genenv ${OUT}
|
||||
|
||||
envdoc:
|
||||
make build
|
||||
./bin/${BINARY_NAME} --envdoc
|
||||
|
||||
showenv:
|
||||
make build
|
||||
./bin/${BINARY_NAME} --showenv
|
||||
|
||||
Reference in New Issue
Block a user