Simplify Makefile

This commit is contained in:
2025-07-06 11:20:22 +00:00
parent 097206060d
commit 7e91564f37

View File

@ -29,6 +29,8 @@ build: sync-version
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
rm -rf debian/.debhelper debian/.gocache debian/go debian/$(BINARY_NAME) debian/files debian/*.substvars debian/debhelper-build-stamp
rm -f ../$(BINARY_NAME)_*.deb ../$(BINARY_NAME)_*.changes ../$(BINARY_NAME)_*.buildinfo
rm -f $(BUILD_DIR)/$(BINARY_NAME)
# Run tests
@ -48,12 +50,6 @@ fmt:
pkg-deb: sync-version build
fakeroot dpkg-buildpackage -us -uc -b
# Clean package artifacts
.PHONY: clean-pkg
clean-pkg:
@echo "Cleaning package artifacts..."
rm -f ../$(BINARY_NAME)_*.deb ../$(BINARY_NAME)_*.changes ../$(BINARY_NAME)_*.buildinfo
# Show help
.PHONY: help
help:
@ -64,5 +60,4 @@ help:
@echo " fmt - Format Go code"
@echo " sync-version - Sync version from debian/changelog to Go source"
@echo " pkg-deb - Create Debian package"
@echo " clean-pkg - Remove package artifacts"
@echo " help - Show this help message"