.PHONY: all clean norm help # Default target: full build with search index all: @echo "Building project (full rebuild with search index)..." emacs -Q --script build.el # Clean output directory clean: @echo "Cleaning output directory..." rm -rf output/ norm: @echo "sorting out the backups..." find . -path ./backups -prune -o -type f -name '*~' -exec mv {} backups/ \; # Show help message help: @echo "Available targets:" @echo " make - Full rebuild" @echo " make clean - Remove output directory" @echo " make norm - Move all files that end with ~ to the backup folder" @echo " make help - Show this help message"