<commit_before># Makefile for building SolarSailNavigator

KSPDIR	:= ${HOME}/.local/share/Steam/steamapps/common/Kerbal Space Program
MANAGED	:= ${KSPDIR}/KSP_Data/Managed/
MECHJEB := ${KSPDIR}/GameData/MechJeb2/Plugins
SSFILES	:= src/Controls.cs \
	src/Preview.cs \
	src/SolarSailNavigator.cs
GMCS	:= gmcs
TAR	:= tar
ZIP	:= zip

all: build

info:
	@echo "== SolarSailNavigator Build Information =="
	@echo "  gmcs:    ${GMCS}"
	@echo "  tar:     ${TAR}"
	@echo "  zip:     ${ZIP}"
	@echo "  KSP Data: ${KSPDIR}"
	@echo "================================"

build: build/SolarSailNavigator.dll

build/%.dll: ${SSFILES}
	mkdir -p build
	${GMCS} -t:library -lib:"${MANAGED}" -lib:"${MECHJEB}" \
		-r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine,MechJeb2 \
		-out:$@ \
		${SSFILES}

package: build ${SSFILES}
	mkdir -p package/SolarSailNavigator/Plugins
	cp -r Parts package/SolarSailNavigator/
	cp build/SolarSailNavigator.dll package/SolarSailNavigator/Plugins/
	cp License.md README.org TODO.org package/SolarSailNavigator/

%.tgz:
	cd package; ${TAR} zcf ../$@ SolarSailNavigator<commit_msg>Add CHANGELOG.org to packages<commit_after># Makefile for building SolarSailNavigator

KSPDIR	:= ${HOME}/.local/share/Steam/steamapps/common/Kerbal Space Program
MANAGED	:= ${KSPDIR}/KSP_Data/Managed/
MECHJEB := ${KSPDIR}/GameData/MechJeb2/Plugins
SSFILES	:= src/Controls.cs \
	src/Preview.cs \
	src/SolarSailNavigator.cs
GMCS	:= gmcs
TAR	:= tar
ZIP	:= zip

all: build

info:
	@echo "== SolarSailNavigator Build Information =="
	@echo "  gmcs:    ${GMCS}"
	@echo "  tar:     ${TAR}"
	@echo "  zip:     ${ZIP}"
	@echo "  KSP Data: ${KSPDIR}"
	@echo "================================"

build: build/SolarSailNavigator.dll

build/%.dll: ${SSFILES}
	mkdir -p build
	${GMCS} -t:library -lib:"${MANAGED}" -lib:"${MECHJEB}" \
		-r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine,MechJeb2 \
		-out:$@ \
		${SSFILES}

package: build ${SSFILES}
	mkdir -p package/SolarSailNavigator/Plugins
	cp -r Parts package/SolarSailNavigator/
	cp build/SolarSailNavigator.dll package/SolarSailNavigator/Plugins/
	cp License.md README.org TODO.org CHANGELOG.org package/SolarSailNavigator/

%.tgz:
	cd package; ${TAR} zcf ../$@ SolarSailNavigator
{'fraction_non_alphanumeric': 0.18043087971274685, 'fraction_numerical': 0.0017953321364452424, 'mean_word_length': 4.449877750611247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1125002', 'n_tokens_mistral': 933, 'n_tokens_neox': 884, 'n_words': 167}