<commit_before>###############################################
#
# Makefile
#
###############################################

all: build

build:
	swift build

install: build
	swift 

test:
	swift test -Xlinker -lUtil

clean:
	swift build --clean
	rm -f Util.swift*

lint:
	swiftlint

SYS_PATH  := /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
INCL_PATH := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk/usr/include
LIB_PATH  := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
SDK_PATH  := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk
#TARGET    := armv7-apple-ios10.0
TARGET    := arm64-apple-ios10.0
MODULE    := Util

ios:
	# Test swiftc cross compile setup on OS X
	swiftc -I $(INCL_PATH) -F $(LIB_PATH) -target $(TARGET) -sdk $(SDK_PATH) -emit-module -module-name $(MODULE) -framework Foundation Sources/*.swift<commit_msg>Enh: makefile improvements for ios target<commit_after>###############################################
#
# Makefile
#
###############################################

all: build

build:
	swift build

test:
	swift test -Xlinker -lUtil

clean:
	swift build --clean
	rm -df ios ios.swiftdoc

lint:
	swiftlint

SYS_PATH  := /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
INCL_PATH := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk/usr/include
LIB_PATH  := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
SDK_PATH  := $(SYS_PATH)/Developer/SDKs/iPhoneOS.sdk
#TARGET    := armv7-apple-ios10.0
TARGET    := arm64-apple-ios10.0
MODULE    := Util

ios:
	# Test swiftc cross compile setup on OS X
	mkdir -p ios
	swiftc -I $(INCL_PATH) -F $(LIB_PATH) -target $(TARGET) -sdk $(SDK_PATH) -emit-module  -emit-module-path ios -module-name $(MODULE) -framework Foundation Sources/*.swift
{'fraction_non_alphanumeric': 0.22492917847025495, 'fraction_numerical': 0.010198300283286119, 'mean_word_length': 4.660256410256411, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4896140', 'n_tokens_mistral': 652, 'n_tokens_neox': 586, 'n_words': 131}