Browse Source

golang: Install files with .cpp/.hpp suffixes by default

This also updates the URL for dh-golang.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lilik-openwrt-22.03
Jeffery To 6 years ago
parent
commit
a80d54fc49
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lang/golang/golang-package.mk

+ 3
- 3
lang/golang/golang-package.mk View File

@ -28,7 +28,7 @@ include $(GO_INCLUDE_DIR)/golang-values.mk
# files are installed: # files are installed:
# #
# * Files with one of these extensions: # * Files with one of these extensions:
# .go, .c, .cc, .h, .hh, .proto, .s
# .go, .c, .cc, .cpp, .h, .hh, .hpp, .proto, .s
# #
# * Files in any 'testdata' directory # * Files in any 'testdata' directory
# #
@ -77,7 +77,7 @@ include $(GO_INCLUDE_DIR)/golang-values.mk
# Credit for this package build process (GoPackage/Build/Configure and # Credit for this package build process (GoPackage/Build/Configure and
# GoPackage/Build/Compile) belong to Debian's dh-golang completely. # GoPackage/Build/Compile) belong to Debian's dh-golang completely.
# https://anonscm.debian.org/cgit/pkg-go/packages/dh-golang.git
# https://salsa.debian.org/go-team/packages/dh-golang
# for building packages, not user code # for building packages, not user code
@ -153,7 +153,7 @@ define GoPackage/Build/Configure
sed 's|^\./||') ; \ sed 's|^\./||') ; \
\ \
if [ "$(GO_PKG_INSTALL_ALL)" != 1 ]; then \ if [ "$(GO_PKG_INSTALL_ALL)" != 1 ]; then \
code=$$$$(echo "$$$$files" | grep '\.\(c\|cc\|go\|h\|hh\|proto\|s\)$$$$') ; \
code=$$$$(echo "$$$$files" | grep '\.\(c\|cc\|cpp\|go\|h\|hh\|hpp\|proto\|s\)$$$$') ; \
testdata=$$$$(echo "$$$$files" | grep '\(^\|/\)testdata/') ; \ testdata=$$$$(echo "$$$$files" | grep '\(^\|/\)testdata/') ; \
\ \
for pattern in $(GO_PKG_INSTALL_EXTRA); do \ for pattern in $(GO_PKG_INSTALL_EXTRA); do \


Loading…
Cancel
Save