go-sqlite3-hak5/_example/custom_driver_name/Makefile

13 lines
222 B
Makefile
Raw Normal View History

2022-01-09 13:39:48 +00:00
TARGET = custom_driver_name
ifeq ($(OS),Windows_NT)
TARGET := $(TARGET).exe
endif
all : $(TARGET)
$(TARGET) : main.go
go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
clean :
rm -f $(TARGET)