github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/makelib/variables.mk (about)

     1  # path to rkt source code distro
     2  ORG_PATH := github.com/rkt
     3  REPO_PATH := $(ORG_PATH)/rkt
     4  
     5  override BUILDDIR := $(abspath $(BUILDDIR))
     6  
     7  STAMPSDIR := $(BUILDDIR)/stamps
     8  TOOLSDIR := $(BUILDDIR)/tools
     9  TARGETDIR := $(BUILDDIR)/target
    10  TARGET_BINDIR := $(BUILDDIR)/target/bin
    11  TARGET_TOOLSDIR := $(BUILDDIR)/target/tools
    12  GOPATH_TO_CREATE := $(BUILDDIR)/gopath
    13  GOPATH := $(GOPATH_TO_CREATE)
    14  DEPSDIR := $(BUILDDIR)/deps
    15  FILELISTDIR := $(BUILDDIR)/filelists
    16  MAINTEMPDIR := $(BUILDDIR)/tmp
    17  CLEANDIR := $(BUILDDIR)/clean
    18  
    19  ACTOOL := $(TOOLSDIR)/actool
    20  DEPSGENTOOL := $(TOOLSDIR)/depsgen
    21  FILELISTGENTOOL := $(TOOLSDIR)/filelistgen
    22  CLEANGENTOOL := $(TOOLSDIR)/cleangen
    23  QUICKRMTOOL := $(TOOLSDIR)/quickrm
    24  
    25  # test-related variables
    26  GO_TEST_PACKAGES ?= ./...
    27  GO_TEST_FUNC_ARGS ?=
    28  
    29  GOOS := $(shell "$(GO)" env GOOS)
    30  
    31  GO_ENV := $(strip \
    32  	GO15VENDOREXPERIMENT=1 \
    33  	GOOS="$(GOOS)" \
    34  	GOARCH="$(GOARCH)" \
    35  	$(if $(GOARM),GOARM="$(GOARM)") \
    36  	CGO_ENABLED=1 \
    37  	CC="$(CC)" \
    38  	CXX="$(CXX)" \
    39  	GOPATH="$(GOPATH)" \
    40  	$(if $(strip $(GOROOT)),GOROOT="$(strip $(GOROOT))"))
    41  
    42  CREATE_DIRS += \
    43  	$(BUILDDIR) \
    44  	$(STAMPSDIR) \
    45  	$(TOOLSDIR) \
    46  	$(TARGETDIR) \
    47  	$(TARGET_BINDIR) \
    48  	$(TARGET_TOOLSDIR) \
    49  	$(GOPATH_TO_CREATE) \
    50  	$(DEPSDIR) \
    51  	$(FILELISTDIR) \
    52  	$(MAINTEMPDIR) \
    53  	$(CLEANDIR)
    54  
    55  CLEAN_DIRS += \
    56  	$(GOPATH)/bin \
    57  	$(GOPATH)/pkg