Add an initial 'make pkg-deb' and debian/ control directory

This commit is contained in:
Pim van Pelt
2025-06-17 00:22:01 +02:00
parent adf033318a
commit 82db92f344
8 changed files with 150 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
.PHONY: build test clean pkg-deb
# Build the govpp-snmp-agentx binary
build:
go build -o govpp-snmp-agentx .
# Run all tests
test:
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