added makefile and cleaned backups

This commit is contained in:
2025-12-30 18:33:47 +00:00
parent 04f2f7b845
commit 78cfe20d64
56 changed files with 103 additions and 11 deletions

23
backups/Makefile~ Normal file
View File

@@ -0,0 +1,23 @@
.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"