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
|
.PHONY: build test clean pkg-deb
|
||||||
|
|
||||||
# Build the govpp-snmp-agentx binary
|
# Build the binary
|
||||||
build:
|
build:
|
||||||
cd src && go build -o ../govpp-snmp-agentx .
|
cd src && go build -o ../$(PROG) .
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
test:
|
test:
|
||||||
@ -10,10 +12,10 @@ test:
|
|||||||
|
|
||||||
# Clean build artifacts
|
# Clean build artifacts
|
||||||
clean:
|
clean:
|
||||||
rm -f govpp-snmp-agentx
|
rm -f $(PROG)
|
||||||
[ -d debian/go ] && chmod -R +w debian/go || true
|
[ -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 -rf debian/.debhelper debian/.gocache debian/go debian/$(PROG) debian/files debian/*.substvars debian/debhelper-build-stamp
|
||||||
rm -f ../govpp-snmp-agentx_*
|
rm -f ../$(PROG)_*.deb ../$(PROG)_*.changes ../$(PROG)_*.buildinfo
|
||||||
|
|
||||||
# Build Debian package
|
# Build Debian package
|
||||||
pkg-deb:
|
pkg-deb:
|
||||||
|
Reference in New Issue
Block a user