Update makefile
This commit is contained in:
30
README.md
30
README.md
@ -21,10 +21,40 @@ A command-line tool for generating SQLAlchemy entities from PostgreSQL database
|
||||
|
||||
### Build from source
|
||||
|
||||
Using Makefile (recommended):
|
||||
|
||||
```bash
|
||||
# Build static binary (production-ready, fully portable)
|
||||
make build
|
||||
|
||||
# Build with debug symbols (development)
|
||||
make build-dev
|
||||
|
||||
# Install to /usr/local/bin
|
||||
make install
|
||||
|
||||
# Clean build artifacts
|
||||
make clean
|
||||
|
||||
# Verify binary has no dependencies
|
||||
make verify-static
|
||||
|
||||
# Show all available targets
|
||||
make help
|
||||
```
|
||||
|
||||
Or using Go directly:
|
||||
|
||||
```bash
|
||||
# Static binary (portable across all Linux x86-64 systems)
|
||||
CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/entity-maker ./cmd/entity-maker
|
||||
|
||||
# Development binary with debug symbols
|
||||
go build -o entity-maker ./cmd/entity-maker
|
||||
```
|
||||
|
||||
The static binary (`make build`) is **fully portable** and will run on any Linux x86-64 system without external dependencies.
|
||||
|
||||
## Usage
|
||||
|
||||
### Interactive Mode
|
||||
|
||||
Reference in New Issue
Block a user