Skip to content
Snippets Groups Projects
Select Git revision
  • 7d668250ca4b8c1b68b3660c2d9fb4294a85298e
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
22 results

topological-sort.go

Blame
  • go.mk 866 B
    #############################################################################################
    #############################################################################################
    ##
    ## COMMANDS GO
    ##
    #############################################################################################
    #############################################################################################
    
    # path and binaries
    GO               := go
    
    EXECUTABLES = $(EXECUTABLES:-) $(GO); 
    
    ifeq ($(shell command -v $(GO) 2> /dev/null),)
      $(error "go is not installed. Please install go <https://go.dev/doc/install>")
    endif
    
    GOPATH=$(shell go env GOPATH)
    
    ifeq ($(GOPATH),)
        DIRS := bin pkg src
        GOPATH=$(DEPLOYMENT_PATH)/go/
        $(shell mkdir -p $(GOPATH))
    	$(shell $(foreach entry,$(DIRS),mkdir -p "$(GOPATH)$(entry)";))
        export PATH=$(PATH):$(GOPATH)/bin
    endif