img2pdf/Makefile
Leak Technologies 465f90a8f8 Simplify project structure and update build system
- Remove Python codebase and packaging files
- Consolidate Go application to single main.go file
- Add Makefile for build management
- Update README with new Go-only structure
- Remove unused dependencies and legacy scripts
2026-01-09 03:34:58 -05:00

27 lines
529 B
Makefile

.PHONY: all build run install clean
all: build
build:
@echo "Building img2pdf..."
@mkdir -p bin
@CGO_ENABLED=1 go build -o bin/img2pdf main.go
@echo "Built successfully to bin/img2pdf"
run: build
@echo "Running img2pdf..."
@./bin/img2pdf
install:
@echo "Installing dependencies..."
@./scripts/install.sh
clean:
@echo "Cleaning up..."
@rm -rf bin/
cgo-disabled:
@echo "Building without CGO..."
@mkdir -p bin
@CGO_ENABLED=0 go build -o bin/img2pdf main.go
@echo "Built with CGO disabled (limited functionality)"