Shorten Makefile

This commit is contained in:
Pim van Pelt
2025-06-17 01:26:23 +02:00
parent 1cbca296c4
commit 5533ab00de

View File

@ -1,8 +1,10 @@
PROG = govpp-snmp-agentx
.PHONY: build test clean pkg-deb
# Build the govpp-snmp-agentx binary
# Build the binary
build:
cd src && go build -o ../govpp-snmp-agentx .
cd src && go build -o ../$(PROG) .
# Run all tests
test:
@ -10,10 +12,10 @@ test:
# Clean build artifacts
clean:
rm -f govpp-snmp-agentx
rm -f $(PROG)
[ -d debian/go ] && chmod -R +w debian/go || true
rm -rf debian/.debhelper debian/.gocache debian/go debian/govpp-snmp-agentx debian/files debian/*.substvars debian/debhelper-build-stamp
rm -f ../govpp-snmp-agentx_*
rm -rf debian/.debhelper debian/.gocache debian/go debian/$(PROG) debian/files debian/*.substvars debian/debhelper-build-stamp
rm -f ../$(PROG)_*.deb ../$(PROG)_*.changes ../$(PROG)_*.buildinfo
# Build Debian package
pkg-deb: