TARGET = custom_driver_nameifeq ($(OS),Windows_NT)TARGET := $(TARGET).exeendif all : $(TARGET) $(TARGET) : main.go go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'" clean : rm -f $(TARGET)