<commit_before>all:

install: install-program install-hooks install-examples install-doc

install-program:
	install -D -m 755 mkarchiso $(DESTDIR)/usr/sbin/mkarchiso

install-hooks:
	# hooks/install are needed by mkinitcpio
	install -D -m 644 hooks/archiso $(DESTDIR)/usr/lib/initcpio/hooks/archiso
	install -D -m 644 install/archiso $(DESTDIR)/usr/lib/initcpio/install/archiso
	install -D -m 755 archiso_shutdown $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
	install -D -m 644 hooks/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
	install -D -m 644 install/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
	install -D -m 644 archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
	install -D -m 644 hooks/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
	install -D -m 644 install/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
	install -D -m 644 hooks/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
	install -D -m 644 install/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
	install -D -m 644 hooks/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
	install -D -m 644 install/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
	install -D -m 644 hooks/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
	install -D -m 644 install/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
	install -D -m 644 hooks/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
	install -D -m 644 install/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
	install -D -m 644 install/archiso_kms $(DESTDIR)/usr/lib/initcpio/install/archiso_kms

install-examples:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
	cp -r ../configs $(DESTDIR)/usr/share/archiso/

install-doc:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
	install -D -m 644 ../README $(DESTDIR)/usr/share/doc/archiso/README
	
uninstall:
	rm -f $(DESTDIR)/usr/sbin/mkarchiso
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso
	rm -f $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
	rm -rf $(DESTDIR)/usr/share/archiso/

.PHONY: install install-program install-hooks install-examples install-doc uninstall<commit_msg>Add dist function to Makefile<commit_after>V=1

all:

install: install-program install-hooks install-examples install-doc

install-program:
	install -D -m 755 mkarchiso $(DESTDIR)/usr/sbin/mkarchiso

install-hooks:
	# hooks/install are needed by mkinitcpio
	install -D -m 644 hooks/archiso $(DESTDIR)/usr/lib/initcpio/hooks/archiso
	install -D -m 644 install/archiso $(DESTDIR)/usr/lib/initcpio/install/archiso
	install -D -m 755 archiso_shutdown $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
	install -D -m 644 hooks/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
	install -D -m 644 install/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
	install -D -m 644 archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
	install -D -m 644 hooks/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
	install -D -m 644 install/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
	install -D -m 644 hooks/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
	install -D -m 644 install/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
	install -D -m 644 hooks/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
	install -D -m 644 install/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
	install -D -m 644 hooks/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
	install -D -m 644 install/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
	install -D -m 644 hooks/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
	install -D -m 644 install/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
	install -D -m 644 install/archiso_kms $(DESTDIR)/usr/lib/initcpio/install/archiso_kms

install-examples:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
	cp -r ../configs $(DESTDIR)/usr/share/archiso/

install-doc:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
	install -D -m 644 ../README $(DESTDIR)/usr/share/doc/archiso/README
	
uninstall:
	rm -f $(DESTDIR)/usr/sbin/mkarchiso
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso
	rm -f $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
	rm -f $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
	rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
	rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
	rm -rf $(DESTDIR)/usr/share/archiso/

dist:
	git archive --format=tar --prefix=archiso-$(V)/ v$(V) | gzip -9 > archiso-$(V).tar.gz
	gpg --detach-sign --use-agent archiso-$(V).tar.gz

.PHONY: install install-program install-hooks install-examples install-doc uninstall dist
{'fraction_non_alphanumeric': 0.13648253577473457, 'fraction_numerical': 0.01969533774426835, 'mean_word_length': 4.6967572304995615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2682695', 'n_tokens_mistral': 2826, 'n_tokens_neox': 2763, 'n_words': 434}