<commit_before>PKGS= ./gtkextra/... ./ui/... ./state/... .

VERSION ?= $(shell date -u +%Y%m%d.%H%M%S)VERSION ?= $(shell date -u +%Y%m%d.%H%M%S)

#all: export GOPATH=${PWD}/../../../..
all: format
	@mkdir -p bin
	@echo "--> Running go build ${VERSION}"
	@go build -v -i -o bin/trustless-gtk3 github.com/untoldwind/trustless-gtk3

#format: export GOPATH=${PWD}/../../../..
format:
	@echo "--> Running go fmt"
	@go fmt ${PKGS}

install.local: export GOPATH=${PWD}/../../../..
install.local: all
	@cp bin/trustless-gtk3 ${HOME}/bin
	@sed 's:@@@HOME@@@:'"${HOME}"':g' scripts/trustless-gtk3.desktop > ${HOME}/.local/share/applications/trustless-gtk3.desktop
bin.windows64: export GOPATH=${PWD}/../../../..
bin.windows64: export GOOS=windows
bin.windows64: export GOARCH=amd64
bin.windows64: export CGO_ENABLED=1
bin.windows64: export CC=x86_64-w64-mingw32-gcc
bin.windows64: export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
bin.windows64:
	@mkdir -p bin
	@echo "--> Running go build ${VERSION}"
	@go build -v -o bin/trustless-gtk3-windows-amd64.exe github.com/untoldwind/trustless-gtk3

dist.windows64: dist/windows64/libatk-1.0-0.dll
dist.windows64: dist/windows64/libbz2-1.dll
dist.windows64: dist/windows64/libcairo-2.dll
dist.windows64: dist/windows64/libcairo-gobject-2.dll
dist.windows64: dist/windows64/libepoxy-0.dll
dist.windows64: dist/windows64/libexpat-1.dll
dist.windows64: dist/windows64/libffi-6.dll
dist.windows64: dist/windows64/libfontconfig-1.dll
dist.windows64: dist/windows64/libfreetype-6.dll
dist.windows64: dist/windows64/libgdk-3-0.dll
dist.windows64: dist/windows64/libgdk_pixbuf-2.0-0.dll
dist.windows64: dist/windows64/libgcc_s_seh-1.dll
dist.windows64: dist/windows64/libgio-2.0-0.dll
dist.windows64: dist/windows64/libglib-2.0-0.dll
dist.windows64: dist/windows64/libgmodule-2.0-0.dll
dist.windows64: dist/windows64/libgtk-3-0.dll
dist.windows64: dist/windows64/libgobject-2.0-0.dll
dist.windows64: dist/windows64/libgraphite2.dll
dist.windows64: dist/windows64/libharfbuzz-0.dll
dist.windows64: dist/windows64/libiconv-2.dll
dist.windows64: dist/windows64/libintl-8.dll
dist.windows64: dist/windows64/libjasper.dll
dist.windows64: dist/windows64/libjpeg-8.dll
dist.windows64: dist/windows64/libpango-1.0-0.dll
dist.windows64: dist/windows64/libpangocairo-1.0-0.dll
dist.windows64: dist/windows64/libpangoft2-1.0-0.dll
dist.windows64: dist/windows64/libpangowin32-1.0-0.dll
dist.windows64: dist/windows64/libpixman-1-0.dll<commit_msg>Optimize linker<commit_after>PKGS= ./gtkextra/... ./ui/... ./state/... .

VERSION ?= $(shell date -u +%Y%m%d.%H%M%S)VERSION ?= $(shell date -u +%Y%m%d.%H%M%S)

#all: export GOPATH=${PWD}/../../../..
all: format
	@mkdir -p bin
	@echo "--> Running go build ${VERSION}"
	@go build -ldflags '-s -w' -v -i -o bin/trustless-gtk3 github.com/untoldwind/trustless-gtk3

#format: export GOPATH=${PWD}/../../../..
format:
	@echo "--> Running go fmt"
	@go fmt ${PKGS}

install.local: export GOPATH=${PWD}/../../../..
install.local: all
	@cp bin/trustless-gtk3 ${HOME}/bin
	@sed 's:@@@HOME@@@:'"${HOME}"':g' scripts/trustless-gtk3.desktop > ${HOME}/.local/share/applications/trustless-gtk3.desktop
bin.windows64: export GOPATH=${PWD}/../../../..
bin.windows64: export GOOS=windows
bin.windows64: export GOARCH=amd64
bin.windows64: export CGO_ENABLED=1
bin.windows64: export CC=x86_64-w64-mingw32-gcc
bin.windows64: export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
bin.windows64:
	@mkdir -p bin
	@echo "--> Running go build ${VERSION}"
	@go build -ldflags '-s -w' -v -o bin/trustless-gtk3-windows-amd64.exe github.com/untoldwind/trustless-gtk3

dist.windows64: dist/windows64/libatk-1.0-0.dll
dist.windows64: dist/windows64/libbz2-1.dll
dist.windows64: dist/windows64/libcairo-2.dll
dist.windows64: dist/windows64/libcairo-gobject-2.dll
dist.windows64: dist/windows64/libepoxy-0.dll
dist.windows64: dist/windows64/libexpat-1.dll
dist.windows64: dist/windows64/libffi-6.dll
dist.windows64: dist/windows64/libfontconfig-1.dll
dist.windows64: dist/windows64/libfreetype-6.dll
dist.windows64: dist/windows64/libgdk-3-0.dll
dist.windows64: dist/windows64/libgdk_pixbuf-2.0-0.dll
dist.windows64: dist/windows64/libgcc_s_seh-1.dll
dist.windows64: dist/windows64/libgio-2.0-0.dll
dist.windows64: dist/windows64/libglib-2.0-0.dll
dist.windows64: dist/windows64/libgmodule-2.0-0.dll
dist.windows64: dist/windows64/libgtk-3-0.dll
dist.windows64: dist/windows64/libgobject-2.0-0.dll
dist.windows64: dist/windows64/libgraphite2.dll
dist.windows64: dist/windows64/libharfbuzz-0.dll
dist.windows64: dist/windows64/libiconv-2.dll
dist.windows64: dist/windows64/libintl-8.dll
dist.windows64: dist/windows64/libjasper.dll
dist.windows64: dist/windows64/libjpeg-8.dll
dist.windows64: dist/windows64/libpango-1.0-0.dll
dist.windows64: dist/windows64/libpangocairo-1.0-0.dll
dist.windows64: dist/windows64/libpangoft2-1.0-0.dll
dist.windows64: dist/windows64/libpangowin32-1.0-0.dll
dist.windows64: dist/windows64/libpixman-1-0.dll
{'fraction_non_alphanumeric': 0.17751004016064256, 'fraction_numerical': 0.08353413654618475, 'mean_word_length': 4.355913978494623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6968684', 'n_tokens_mistral': 2279, 'n_tokens_neox': 2010, 'n_words': 296}