Add an initial 'make pkg-deb' and debian/ control directory
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal 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
|
Reference in New Issue
Block a user