From 5533ab00deff087cce29274452edd28ca008de7b Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Tue, 17 Jun 2025 01:26:23 +0200 Subject: [PATCH] Shorten Makefile --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9d9b7cc..c11e06f 100644 --- a/Makefile +++ b/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: