Add Debian package
This commit is contained in:
24
Makefile
24
Makefile
@ -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"
|
||||
|
Reference in New Issue
Block a user