2.8 KiB
2.8 KiB
Makefile Commands - Quick Reference
📋 Command Categories
🛠️ Installation and Deployment
make install # Full application installation
make uninstall # Remove application
make status # Check installation status
make check-config # Verify configuration
🔨 Building Executables
make build # Build for current OS
make build-linux # Build for Linux
make build-windows # Build for Windows
make build-all # Build for all platforms
📦 Creating Packages
make package-linux # Create tar.gz for Linux
make package-windows # Create zip for Windows
make release # Full release cycle
🧪 Testing
make test-run # Test script run
make test-cert # Create test certificate
make test-build # Test built file
🚀 Running Operations
make run # Automatic check and renewal
make obtain # Obtain new certificate
make renew # Renew existing certificate
📊 Monitoring
make logs # Show logs
make status # Service status
🧹 Cleanup
make clean # Clean Python temporary files
make clean-build # Clean build artifacts
ℹ️ Information
make help # Show help
make build-info # Build environment information
🎯 Common Scenarios
Initial Installation
sudo make install
sudo make check-config
sudo make test-run
Building Release for GitHub
make clean-build
make release
# Files will be in dist/
Creating Test Environment
sudo make install
sudo make test-cert
sudo make status
Manual Certificate Renewal
sudo make run
sudo make logs
Removing Application
sudo make uninstall
📝 Environment Variables
Main variables defined in Makefile:
INSTALL_DIR = /opt/letsencrypt-regru
CONFIG_FILE = /etc/letsencrypt/regru_config.json
LOG_FILE = /var/log/letsencrypt_regru.log
SERVICE_NAME = letsencrypt-regru
PYTHON = python3
🔐 Required Permissions
Require sudo:
make installmake uninstallmake runmake obtainmake renewmake test-runmake test-cert
Don't require sudo:
make build*make package*make clean*make helpmake build-info
💡 Useful Combinations
# Full reinstallation
sudo make uninstall && sudo make install
# Build and test
make build && make test-build
# Clean and release
make clean-build && make release
# Post-installation check
sudo make status && sudo make test-run && sudo make logs
Author: Dmitry Fofanov
Last Updated: October 28, 2025