Files
govpp-snmp-agentx/Makefile
2025-06-17 00:47:08 +02:00

21 lines
520 B
Makefile

.PHONY: build test clean pkg-deb
# Build the govpp-snmp-agentx binary
build:
cd src && go build -o ../govpp-snmp-agentx .
# Run all tests
test:
cd src && go test ./...
# Clean build artifacts
clean:
rm -f govpp-snmp-agentx
[ -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_*
# Build Debian package
pkg-deb:
fakeroot dpkg-buildpackage -us -uc -b