xref: /plugin/deletepageguard/Makefile (revision c176b8b34e4ca9181ac383002f75ffe5441c68b3)
1# Delete Page Guard Plugin - Developer Tools
2#
3# Simple Makefile for common development tasks
4
5.PHONY: test check clean help
6
7# Default target
8help:
9	@echo "Delete Page Guard Plugin - Developer Tools"
10	@echo "=========================================="
11	@echo ""
12	@echo "Available targets:"
13	@echo "  test    - Run the test suite"
14	@echo "  check   - Check PHP syntax of all files"
15	@echo "  clean   - Clean temporary files"
16	@echo "  help    - Show this help message"
17
18# Run the test suite
19test:
20	@echo "Running test suite..."
21	php tests/test_runner.php
22
23# Check syntax of all PHP files
24check:
25	@echo "Checking PHP syntax..."
26	@find . -name "*.php" -not -path "./tests/*" -exec php -l {} \;
27	@echo "Syntax check complete."
28
29# Clean temporary files
30clean:
31	@echo "Cleaning temporary files..."
32	@find . -name "*~" -delete
33	@find . -name "*.tmp" -delete
34	@echo "Clean complete."