<commit_before>default: preview

clean: site
	@echo "Cleaning site....."
	./site clean

build: site
	@echo "Building site....."
	./site build

site: site.hs
	#ghc --make -threaded site.hs

deploy: build
	@echo "Deploying site....."
	rsync -ahW --delete ./_site/* ../marczuo.github.io
	git -C ../marczuo.github.io add -A
	git -C ../marczuo.github.io diff-index --quiet HEAD ||\
		git -C ../marczuo.github.io commit -m "Updating site"

commit:
	git add -A
	git diff-index --quiet HEAD || git commit -m "Updating site"

push: deploy commit
	@echo "Pushing to Github server....."
	git push origin master
	git -C ../marczuo.github.io push origin master

preview: build
	@echo "Copying site to http server directory..."
	rsync -ahW --delete ./_site/* /srv/http<commit_msg>Updating site<commit_after>default: preview

clean: site
	@echo "Cleaning site....."
	./site clean

cleanall: clean
	@echo "Purging binary files..."
	rm -f site site.o site.hi

build: site
	@echo "Building site....."
	./site build

site: site.hs
	stack ghc -- --make -threaded site.hs

deploy: build
	@echo "Deploying site....."
	rsync -ahW --delete ./_site/* ../marczuo.github.io
	git -C ../marczuo.github.io add -A
	git -C ../marczuo.github.io diff-index --quiet HEAD ||\
		git -C ../marczuo.github.io commit -m "Updating site"

commit:
	git add -A
	git diff-index --quiet HEAD || git commit -m "Updating site"

push: deploy commit
	@echo "Pushing to Github server....."
	git push origin master
	git -C ../marczuo.github.io push origin master

preview: build
	@echo "Copying site to http server directory..."
	rsync -ahW --delete ./_site/* /srv/http
{'fraction_non_alphanumeric': 0.15893630179344465, 'fraction_numerical': 0.0, 'mean_word_length': 2.6772727272727272, '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': '2686965', 'n_tokens_mistral': 599, 'n_tokens_neox': 583, 'n_words': 202}