pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/go go-module.mk: allow packages that use this to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6b76abe1f55
branches:  trunk
changeset: 372155:c6b76abe1f55
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Jan 20 21:37:11 2022 +0000

description:
go-module.mk: allow packages that use this to have post-extract & pre-clean

diffstat:

 lang/go/go-module.mk |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 153e21161916 -r c6b76abe1f55 lang/go/go-module.mk
--- a/lang/go/go-module.mk      Thu Jan 20 20:30:42 2022 +0000
+++ b/lang/go/go-module.mk      Thu Jan 20 21:37:11 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.7 2021/10/06 10:30:22 jperkin Exp $
+# $NetBSD: go-module.mk,v 1.8 2022/01/20 21:37:11 tnn Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -74,13 +74,17 @@
 SITES.${i:C/[\/!]/_/g}= -https://proxy.golang.org/${i}
 .endfor
 
-post-extract:
+.PHONY: post-extract-go
+post-extract: post-extract-go
+post-extract-go:
 .for i in ${GO_MODULE_FILES}
        ${MKDIR} ${WRKDIR}/.goproxy/${i:H}
        cp ${DISTDIR}/${DIST_SUBDIR}/${i:C/[\/!]/_/g} ${WRKDIR}/.goproxy/${i}
 .endfor
 
-pre-clean:
+.PHONY: pre-clean-go
+pre-clean: pre-clean-go
+pre-clean-go:
        ${RUN} [ -d ${WRKDIR}/.gopath ] && chmod -R +w ${WRKDIR}/.gopath || true
 
 _VARGROUPS+=           go



Home | Main Index | Thread Index | Old Index