<commit_before>
-include Makefile.base

CFILES		:= $(wildcard stub/*.c)
SFILES		:= $(wildcard stub/*.S)
SPRXS		:= $(wildcard sprx/lib*)
LIBS		:= $(wildcard libs/lib*)

STUBS		:= $(SFILES:.S=.o) $(CFILES:.c=.o)

CGINCLUDE	:= /usr/include/Cg/cg.h

all: $(STUBS)
	@ppu-ld -r $(STUBS) -o stub/crt1.o
	@make -C tools/raw2h --no-print-directory
	@make -C tools/ps3load --no-print-directory
	@make -C tools/sprxlinker --no-print-directory
	@if test -e $(CGINCLUDE); then @make -C tools/vpcomp --no-print-directory; fi
	@make -C tools/PS3Py --no-print-directory
	@make -f Makefile.lib --no-print-directory
	@make -C libc-glue-ppu --no-print-directory
	@for dir in $(SPRXS) $(LIBS); do \
		make -C $$dir --no-print-directory; \
	done

clean:
	rm -f $(STUBS) stub/crt1.o stub.a
	@make -C tools/raw2h clean --no-print-directory
	@make -C tools/ps3load clean --no-print-directory
	@make -C tools/sprxlinker clean --no-print-directory
	@if test -e $(CGINCLUDE); then @make -C tools/vpcomp clean --no-print-directory; fi
	@make -C tools/PS3Py clean --no-print-directory
	@make -f Makefile.lib clean --no-print-directory
	@make -C libc-glue-ppu clean --no-print-directory
	@for dir in $(SPRXS) $(LIBS); do \
		make -C $$dir clean --no-print-directory; \
	done

install: all
	@mkdir -p $(PSL1GHT)/include $(PSL1GHT)/lib $(PSL1GHT)/bin
	@cp linker.x libpsl1ght.a libc-glue-ppu/libc-glue-ppu.a stub/crt1.o sprx/*/*.a libs/*/*.a $(PSL1GHT)/lib/
	@cp -r include $(PSL1GHT)/
	@cp Makefile.base $(PSL1GHT)/
	@cp tools/raw2h/raw2h tools/ps3load/ps3load tools/sprxlinker/sprxlinker $(PSL1GHT)/bin/
	@if test -e $(CGINCLUDE); then @cp tools/vpcomp/vpcomp $(PSL1GHT)/bin/; fi
	@cp tools/PS3Py/fself.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/Struct.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/sfo.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/sfo.xml $(PSL1GHT)/bin/
	@cp tools/PS3Py/pkg.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/ICON0.PNG $(PSL1GHT)/bin/
	@cp tools/PS3Py/pkgcrypt.so $(PSL1GHT)/bin/
	@echo Installed to $(PSL1GHT)

%.o: %.c
	$(CC) -Iinclude -c $< -o $@

%.o: %.S
	$(CC) -Iinclude -c $< -o $@
<commit_msg>Fixed makefile to not specify .so.<commit_after>
-include Makefile.base

CFILES		:= $(wildcard stub/*.c)
SFILES		:= $(wildcard stub/*.S)
SPRXS		:= $(wildcard sprx/lib*)
LIBS		:= $(wildcard libs/lib*)

STUBS		:= $(SFILES:.S=.o) $(CFILES:.c=.o)

CGINCLUDE	:= /usr/include/Cg/cg.h

all: $(STUBS)
	@ppu-ld -r $(STUBS) -o stub/crt1.o
	@make -C tools/raw2h --no-print-directory
	@make -C tools/ps3load --no-print-directory
	@make -C tools/sprxlinker --no-print-directory
	@if test -e $(CGINCLUDE); then @make -C tools/vpcomp --no-print-directory; fi
	@make -C tools/PS3Py --no-print-directory
	@make -f Makefile.lib --no-print-directory
	@make -C libc-glue-ppu --no-print-directory
	@for dir in $(SPRXS) $(LIBS); do \
		make -C $$dir --no-print-directory; \
	done

clean:
	rm -f $(STUBS) stub/crt1.o stub.a
	@make -C tools/raw2h clean --no-print-directory
	@make -C tools/ps3load clean --no-print-directory
	@make -C tools/sprxlinker clean --no-print-directory
	@if test -e $(CGINCLUDE); then @make -C tools/vpcomp clean --no-print-directory; fi
	@make -C tools/PS3Py clean --no-print-directory
	@make -f Makefile.lib clean --no-print-directory
	@make -C libc-glue-ppu clean --no-print-directory
	@for dir in $(SPRXS) $(LIBS); do \
		make -C $$dir clean --no-print-directory; \
	done

install: all
	@mkdir -p $(PSL1GHT)/include $(PSL1GHT)/lib $(PSL1GHT)/bin
	@cp linker.x libpsl1ght.a libc-glue-ppu/libc-glue-ppu.a stub/crt1.o sprx/*/*.a libs/*/*.a $(PSL1GHT)/lib/
	@cp -r include $(PSL1GHT)/
	@cp Makefile.base $(PSL1GHT)/
	@cp tools/raw2h/raw2h tools/ps3load/ps3load tools/sprxlinker/sprxlinker $(PSL1GHT)/bin/
	@if test -e $(CGINCLUDE); then @cp tools/vpcomp/vpcomp $(PSL1GHT)/bin/; fi
	@cp tools/PS3Py/fself.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/Struct.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/sfo.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/sfo.xml $(PSL1GHT)/bin/
	@cp tools/PS3Py/pkg.py $(PSL1GHT)/bin/
	@cp tools/PS3Py/ICON0.PNG $(PSL1GHT)/bin/
	@cp tools/PS3Py/pkgcrypt.* $(PSL1GHT)/bin/
	@echo Installed to $(PSL1GHT)

%.o: %.c
	$(CC) -Iinclude -c $< -o $@

%.o: %.S
	$(CC) -Iinclude -c $< -o $@

{'fraction_non_alphanumeric': 0.1963855421686747, 'fraction_numerical': 0.018313253012048194, 'mean_word_length': 3.261806981519507, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1825730', 'n_tokens_mistral': 1939, 'n_tokens_neox': 1870, 'n_words': 413}