<commit_before>OUTDIR:=bin/
LIBDIR:=$(OUTDIR)lib/
INCDIR:=$(OUTDIR)include/
ETCDIR:=$(OUTDIR)etc/

all: $(LIBDIR)core $(INCDIR)corelib.inc $(ETCDIR)extensions $(ETCDIR)magic

$(LIBDIR)core: corelib.asm characters.asm errors.asm
	mkdir -p $(LIBDIR)
	$(AS) $(ASFLAGS) --define "$(PLATFORM)" --include "$(INCLUDE);$(PACKAGEPATH)/corelib/" corelib.asm $(LIBDIR)core

$(INCDIR)corelib.inc:
	mkdir -p $(INCDIR)
	cp corelib.inc $(INCDIR)corelib.inc

$(ETCDIR)extensions:
	# This would just be an empty file by default, but we're testing things
	mkdir -p $(ETCDIR)
	cp extensions $(ETCDIR)extensions

$(ETCDIR)magic:
	# This is just an empty file by default
	mkdir -p $(ETCDIR)
	touch $(ETCDIR)magic

clean:
	rm -rf $(OUTDIR)

.PHONY: all clean<commit_msg>Switch from copying files to extracting packages<commit_after>OUTDIR:=bin/
LIBDIR:=$(OUTDIR)lib/
INCDIR:=$(OUTDIR)include/
ETCDIR:=$(OUTDIR)etc/

all: package
	
package: $(LIBDIR)core $(INCDIR)corelib.inc $(ETCDIR)extensions $(ETCDIR)magic
	kpack corelib-0.1.0.pkg $(OUTDIR)

$(LIBDIR)core: corelib.asm characters.asm errors.asm
	mkdir -p $(LIBDIR)
	$(AS) $(ASFLAGS) --define "$(PLATFORM)" --include "$(INCLUDE);$(PACKAGEPATH)/corelib/" corelib.asm $(LIBDIR)core

$(INCDIR)corelib.inc:
	mkdir -p $(INCDIR)
	cp corelib.inc $(INCDIR)corelib.inc

$(ETCDIR)extensions:
	# This would just be an empty file by default, but we're testing things
	mkdir -p $(ETCDIR)
	cp extensions $(ETCDIR)extensions

$(ETCDIR)magic:
	# This is just an empty file by default
	mkdir -p $(ETCDIR)
	touch $(ETCDIR)magic

clean:
	rm -rf $(OUTDIR)
	rm -rf corelib-0.1.0.pkg

install: package
	kpack -e corelib-0.1.0.pkg $(PREFIX)

.PHONY: all clean
{'fraction_non_alphanumeric': 0.16436712657468505, 'fraction_numerical': 0.005398920215956809, 'mean_word_length': 5.154981549815498, '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': '1472944', 'n_tokens_mistral': 670, 'n_tokens_neox': 640, 'n_words': 163}