<commit_before>PROJECT=blog
DEPLOY_DIR=/home/ehouse/public_html/webtest
WEBSERVER=bawls.ehouse.io
SITENAME=ehouse.io

all: $(PROJECT)

new-post:
	@./scripts/write_post.sh

$(PROJECT):
	# Build Blogroll index
	@./scripts/kackle -r src/$(PROJECT)/blog
	# Build Blog
	@./scripts/kackle -b src/$(PROJECT)
	# Create sitemap
	@./scripts/kackle -s out/$(PROJECT) -n "$(SITENAME)"
	# Compress the CSS, HTML and JS
	find -L out/$(PROJECT) \( -name "*.html" -or -name "*.css" \) -exec htmlcompressor --compress-js --compress-css {} -o {} \;

deploy: $(PROJECT)
	rsync -e ssh -P -rvzcl --delete out/$(PROJECT)/ $(WEBSERVER):$(DEPLOY_DIR) --cvs-exclude

clean:
	rm -rf $(wildcard out/*)

.PHONY: all new-post $(PROJECT) deploy clean<commit_msg>Fixed generic makefile, added dependency resolution<commit_after>SRC=src/sample
OUT=out/sample
DEPLOY_DIR=/home/<user-name>/public_html/
WEBSERVER=<web-server>
SITENAME=<site-name>

all: $(OUT)

new-post:
	@./scripts/write_post.sh

$(OUT): $(SRC)
	# Build Blogroll index
	@./scripts/kackle -r $(SRC)/blog
	# Build Blog
	@./scripts/kackle -b $(SRC)
	# Create sitemap
	@./scripts/kackle -s $(OUT) -n "$(SITENAME)"
	# Compress the CSS, HTML and JS
	find -L $(OUT) \( -name "*.html" -or -name "*.css" \) -exec htmlcompressor --compress-js --compress-css {} -o {} \;

deploy: $(OUT)
	rsync -e ssh -P -rvzcl --delete $(OUT)/ $(WEBSERVER):$(DEPLOY_DIR) --cvs-exclude

clean:
	rm -rf $(wildcard out/*)

.PHONY: all new-post deploy clean
{'fraction_non_alphanumeric': 0.19383561643835617, 'fraction_numerical': 0.0, 'mean_word_length': 3.6826923076923075, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3880790', 'n_tokens_mistral': 610, 'n_tokens_neox': 589, 'n_words': 141}