corrode-scanner 0.3.0

Passive web reconnaissance tool for extracting secrets, credentials, and security data
# Corrode Makefile
# Simple commands for building and installing

.PHONY: help build release install uninstall clean test

help:
	@echo "๐Ÿฆ€ Corrode - Available Commands"
	@echo ""
	@echo "  make build      - Build debug binary"
	@echo "  make release    - Build optimized release binary"
	@echo "  make install    - Install corrode to /usr/local/bin"
	@echo "  make uninstall  - Remove corrode from /usr/local/bin"
	@echo "  make clean      - Clean build artifacts"
	@echo "  make test       - Run tests"
	@echo ""

build:
	@echo "๐Ÿ”จ Building debug binary..."
	cargo build

release:
	@echo "๐Ÿš€ Building release binary..."
	cargo build --release
	@echo "โœ“ Binary at: ./target/release/corrode"

install: release
	@echo "๐Ÿ“ฆ Installing corrode..."
	@if [ ! -w /usr/local/bin ]; then \
		echo "๐Ÿ” Requesting sudo for installation..."; \
		sudo cp target/release/corrode /usr/local/bin/corrode; \
		sudo chmod +x /usr/local/bin/corrode; \
	else \
		cp target/release/corrode /usr/local/bin/corrode; \
		chmod +x /usr/local/bin/corrode; \
	fi
	@echo "โœ“ Corrode installed to /usr/local/bin/corrode"
	@echo "โœ“ You can now run: corrode"

uninstall:
	@echo "๐Ÿ—‘๏ธ  Uninstalling corrode..."
	@if [ -f /usr/local/bin/corrode ]; then \
		if [ ! -w /usr/local/bin ]; then \
			sudo rm /usr/local/bin/corrode; \
		else \
			rm /usr/local/bin/corrode; \
		fi; \
		echo "โœ“ Corrode uninstalled"; \
	else \
		echo "โš ๏ธ  Corrode not found in /usr/local/bin"; \
	fi

clean:
	@echo "๐Ÿงน Cleaning build artifacts..."
	cargo clean
	@echo "โœ“ Clean complete"

test:
	@echo "๐Ÿงช Running tests..."
	cargo test