Add Debian package

This commit is contained in:
2025-07-06 00:13:20 +00:00
parent 983bfec9b3
commit c84986a443
10 changed files with 186 additions and 5 deletions

View File

@ -36,12 +36,26 @@ fmt:
@echo "Formatting Go code..."
cd $(SOURCE_DIR) && go fmt ./...
# Build Debian package
.PHONY: pkg-deb
pkg-deb:
fakeroot dpkg-buildpackage -us -uc -b
# Clean package artifacts
.PHONY: clean-pkg
clean-pkg:
@echo "Cleaning package artifacts..."
@rm -f *.deb
@echo "Package cleanup complete"
# Show help
.PHONY: help
help:
@echo "Available targets:"
@echo " build - Build the router_backup binary"
@echo " clean - Remove build artifacts"
@echo " test - Run tests"
@echo " fmt - Format Go code"
@echo " help - Show this help message"
@echo " build - Build the router_backup binary"
@echo " clean - Remove build artifacts"
@echo " test - Run tests"
@echo " fmt - Format Go code"
@echo " pkg-deb - Create Debian package"
@echo " clean-pkg - Remove package artifacts"
@echo " help - Show this help message"