mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Go: Cleanup Go Path after build
Go leaves temporary build files in the directory which we do not need and we should clean up after every build. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
44cc9a3d57
commit
cde41c2e6f
@@ -115,6 +115,9 @@ ifeq "$(BUILD_ARCH)" "aarch64"
|
||||
GRUB_ARCH = arm64
|
||||
endif
|
||||
|
||||
# Go
|
||||
export GOPATH = $(HOME)/gopath
|
||||
|
||||
###############################################################################
|
||||
# Common Macro Definitions
|
||||
###############################################################################
|
||||
@@ -156,6 +159,7 @@ define POSTBUILD
|
||||
@echo "Updating linker cache..."
|
||||
@type -p ldconfig >/dev/null && ldconfig || :
|
||||
@echo "Install done; saving file list to $(TARGET) ..."
|
||||
@rm -rf $(GOPATH)
|
||||
@$(FIND_FILES) > $(DIR_SRC)/lsalrnew
|
||||
@diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff
|
||||
@cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr
|
||||
|
||||
@@ -37,8 +37,6 @@ PAK_VER = 1
|
||||
|
||||
DEPS = ""
|
||||
|
||||
export GOPATH = $(HOME)/gopath
|
||||
|
||||
DIR_BUILD = $(GOPATH)/src/github.com/aws/amazon-ssm-agent
|
||||
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user