slTrain/Makefile
developtheweb@protonmail.com 53946c1897 Refactor sl from simple script to professional CLI tool
- Complete rewrite as standalone Python executable
- Add multiple train types (Classic, D51, C51)
- Implement flying mode, accident mode, and speed control
- Remove external dependencies (now pure Python with ANSI codes)
- Add professional documentation (README, CONTRIBUTING, CHANGELOG)
- Update author information to Reverend Steven Milanese
- Add installation via Makefile
- Clean up virtual environments and old files
- Enhance README with badges, platform instructions, and links

This transforms sl into a production-ready command-line tool following
software engineering best practices while maintaining its core purpose
as a fun terminal animation.
2025-06-05 21:42:48 -04:00

43 lines
No EOL
854 B
Makefile

# Makefile for sl (Steam Locomotive)
# Author: Reverend Steven Milanese
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
INSTALL = install
RM = rm -f
# Default target
all:
@echo "sl - Steam Locomotive"
@echo "Usage: make install - Install sl to $(BINDIR)"
@echo " make uninstall - Remove sl from $(BINDIR)"
@echo " make test - Test sl locally"
# Install sl
install:
$(INSTALL) -d $(BINDIR)
$(INSTALL) -m 755 sl $(BINDIR)/sl
@echo "sl installed to $(BINDIR)/sl"
@echo "Type 'sl' to see the train!"
# Uninstall sl
uninstall:
$(RM) $(BINDIR)/sl
@echo "sl removed from $(BINDIR)"
# Test locally
test:
./sl
# Run with different options
demo:
@echo "=== Classic Train ==="
./sl
@echo "=== Flying Train ==="
./sl -F
@echo "=== C51 Train ==="
./sl -c
@echo "=== Accident ==="
./sl -a
.PHONY: all install uninstall test demo