- 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
27 lines
529 B
Makefile
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)"
|