eia-api-go/Makefile

24 lines
421 B
Makefile

# Variables
CLIENT_PKG := ./cmd/eia-client
.PHONY: all generate build install clean
# Default target
all: generate build
# Generate code
generate:
go generate ./...
# Build the client command binary
build: generate
go build -o bin/eia-client $(CLIENT_PKG)
# Install the client command binary
install: generate
go install $(CLIENT_PKG)
# Clean up generated files and build artifacts
clean:
rm -rf bin/eia-client