<commit_before>

VERSION=1.2

OUTPUT_DIR=./BuildOutput
OUTPUT_ZIP=Eto.Forms-$(VERSION).zip
MD_PATH=/Applications/MonoDevelop.app
MDTOOL=$(MD_PATH)/Contents/MacOS/mdtool
SOURCE=./Source
ETO_SLN=$(SOURCE)/Eto.sln
ZIP=zip -9 -r

assemblies=\
"Eto.Json.dll"\
"Eto.Platform.Gtk.dll"\
"Eto.Platform.Mac.dll"\
"Eto.Platform.Windows.dll"\
"Eto.Platform.Wpf.dll"\
"Eto.dll"


all: info

clean:
	rm -Rf $(OUTPUT_DIR)

info:
	@echo
	@echo NOTE: This script is used to build the release package.  Follow these steps:
	@echo "   1. on windows: buildwin.cmd"
	@echo "   2. on osx: make release"
	@echo
	@echo This will produce $(OUTPUT_ZIP) in the BuildOutput directory for release.
	@echo

release: zip zip-mac


	
zip-mac: build-mac
	cd $(OUTPUT_DIR); \
	$(ZIP) $(OUTPUT_ZIP) Debug/Eto.Test.Mac.app -x *.mdb;

build-mac:
	$(MDTOOL) build -c:Mac\ Debug $(ETO_SLN)
	
debug-bin:
	$(call process-release,${OUTPUT_DIR}/Debug)
	$(call convert-pdb,${OUTPUT_DIR}/Debug)

release-bin:
	$(call process-release,$(OUTPUT_DIR)/Release)
	$(call convert-pdb,$(OUTPUT_DIR)/Release)
	rm -fR $(OUTPUT_DIR)/Release/Eto.Test.*

zip: debug-bin release-bin
	@echo Zipping to $(OUTPUT_ZIP)
	cd $(OUTPUT_DIR); \
	rm -f $(OUTPUT_ZIP); \
	$(ZIP) $(OUTPUT_ZIP) Debug Release;


define process-release
	cd $1; \
	rm -f *.mdb; \
	rm -f Eto.Test.*.mdb; \
	rm -f Eto.Test.*.pdb; \
	rm -f *.vshost.exe*; \
	rm -f Newtonsoft.Json.pdb; \
	rm -f Newtonsoft.Json.xml;
endef

define convert-pdb
	cd $1; \
	for i in $(assemblies); do \
		echo Converting $$i...; \
		pdb2mdb $$i; \
	done

endef<commit_msg>Update makefile<commit_after>

VERSION=1.2

OUTPUT_DIR=./BuildOutput
OUTPUT_ZIP=Eto.Forms-$(VERSION).zip
MD_PATH=/Applications/MonoDevelop.app
MDTOOL=$(MD_PATH)/Contents/MacOS/mdtool
SOURCE=./Source
ETO_SLN=$(SOURCE)/Eto.sln
ZIP=zip -9 -r

assemblies=\
"Eto.Json.dll"\
"Eto.Platform.Gtk.dll"\
"Eto.Platform.Mac.dll"\
"Eto.Platform.Windows.dll"\
"Eto.Platform.Wpf.dll"\
"Eto.dll"


all: info

clean:
	rm -Rf $(OUTPUT_DIR)

info:
	@echo
	@echo NOTE: This script is used to build the release package.  Follow these steps:
	@echo "   1. on windows: buildwin.cmd"
	@echo "   2. on osx: make release"
	@echo
	@echo This will produce $(OUTPUT_ZIP) in the BuildOutput directory for release.
	@echo

release: zip zip-mac


	
zip-mac: build-mac
	cd $(OUTPUT_DIR); \
	$(ZIP) $(OUTPUT_ZIP) Debug/Eto.Test.Mac.app -x *.mdb;

build-mac:
	$(MDTOOL) build -c:Mac\ Debug $(ETO_SLN)
	
debug-bin:
	$(call process-release,${OUTPUT_DIR}/Debug)
	$(call convert-pdb,${OUTPUT_DIR}/Debug)

release-bin:
	$(call process-release,$(OUTPUT_DIR)/Release)
	$(call convert-pdb,$(OUTPUT_DIR)/Release)
	rm -fR $(OUTPUT_DIR)/Release/Eto.Test.*

zip: debug-bin release-bin
	@echo Zipping to $(OUTPUT_ZIP)
	cd $(OUTPUT_DIR); \
	rm -f $(OUTPUT_ZIP); \
	$(ZIP) $(OUTPUT_ZIP) Debug Release;


define process-release
	cd $1; \
	rm -f *.mdb; \
	rm -f Eto.Test*.pdb; \
	rm -f *.vshost.exe*; \
	rm -f Newtonsoft.Json.pdb; \
	rm -f Newtonsoft.Json.xml;
endef

define convert-pdb
	cd $1; \
	for i in $(assemblies); do \
		echo Converting $$i...; \
		pdb2mdb $$i; \
	done

endef
{'fraction_non_alphanumeric': 0.17239144523655217, 'fraction_numerical': 0.005184705119896306, 'mean_word_length': 3.6561085972850678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3444575', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1288, 'n_words': 297}