Shorten Makefile
This commit is contained in:
12
Makefile
12
Makefile
@ -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:
|
||||
|
Reference in New Issue
Block a user