# Makefile Commands - Quick Reference ## ๐Ÿ“‹ Command Categories ### ๐Ÿ› ๏ธ Installation and Deployment ```bash make install # Full application installation make uninstall # Remove application make status # Check installation status make check-config # Verify configuration ``` ### ๐Ÿ”จ Building Executables ```bash 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 ```bash make package-linux # Create tar.gz for Linux make package-windows # Create zip for Windows make release # Full release cycle ``` ### ๐Ÿงช Testing ```bash make test-run # Test script run make test-cert # Create test certificate make test-build # Test built file ``` ### ๐Ÿš€ Running Operations ```bash make run # Automatic check and renewal make obtain # Obtain new certificate make renew # Renew existing certificate ``` ### ๐Ÿ“Š Monitoring ```bash make logs # Show logs make status # Service status ``` ### ๐Ÿงน Cleanup ```bash make clean # Clean Python temporary files make clean-build # Clean build artifacts ``` ### โ„น๏ธ Information ```bash make help # Show help make build-info # Build environment information ``` --- ## ๐ŸŽฏ Common Scenarios ### Initial Installation ```bash sudo make install sudo make check-config sudo make test-run ``` ### Building Release for GitHub ```bash make clean-build make release # Files will be in dist/ ``` ### Creating Test Environment ```bash sudo make install sudo make test-cert sudo make status ``` ### Manual Certificate Renewal ```bash sudo make run sudo make logs ``` ### Removing Application ```bash sudo make uninstall ``` --- ## ๐Ÿ“ Environment Variables Main variables defined in Makefile: ```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 install` - `make uninstall` - `make run` - `make obtain` - `make renew` - `make test-run` - `make test-cert` **Don't require sudo:** - `make build*` - `make package*` - `make clean*` - `make help` - `make build-info` --- ## ๐Ÿ’ก Useful Combinations ```bash # 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