# VideoTools Makefile # Cross-platform installer for Linux and Windows (Git Bash/WSL) PREFIX ?= /usr/local INSTALL_DIR = $(PREFIX)/bin DOC_DIR = $(PREFIX)/share/doc/videotools SCRIPT = video-tools.sh DOCS = docs install: @echo "Installing VideoTools..." mkdir -p "$(INSTALL_DIR)" cp "$(SCRIPT)" "$(INSTALL_DIR)/video-tools" chmod +x "$(INSTALL_DIR)/video-tools" @echo "Copied script to $(INSTALL_DIR)/video-tools" mkdir -p "$(DOC_DIR)" cp -r "$(DOCS)"/* "$(DOC_DIR)/" @echo "Documentation installed to $(DOC_DIR)" uninstall: @echo "Removing VideoTools..." rm -f "$(INSTALL_DIR)/video-tools" rm -rf "$(DOC_DIR)" @echo "VideoTools uninstalled." docs: @echo "Opening documentation..." @ls -1 $(DOCS) help: @echo "Available targets:" @echo " make install Install the toolkit system-wide" @echo " make uninstall Remove the toolkit" @echo " make docs List documentation files" @echo " make help Show this message"