# Makefile for cleaning packaging files and directories

.PHONY: clean-package clean-build clean

# Clean distribution artifacts (dist/ and *.egg-info)
clean-package:
	rm -rf dist
	rm -rf *.egg-info
	rm -rf src/*.egg-info

# Clean all Python build artifacts (dist, egg-info, pyc, and cache files)
clean-build: clean-package
	find . -name "__pycache__" -type d -exec rm -rf {} +
	find . -name "*.pyc" -exec rm -f {} +
	find . -name "*.pyo" -exec rm -f {} +

clean-tests:
	rm -rf .sesskey
	rm -rf tests/.sesskey
	rm -rf tests/*.db
	rm -rf tests/.myFastHtmlDb

clean-app:
	rm -rf src/.myFastHtmlDb

# Alias to clean everything
clean: clean-build clean-tests clean-app

clean-all : clean
	rm -rf src/.sesskey
	rm -rf src/Users.db

