github.com/simonferquel/app@v0.6.1-0.20181012141724-68b7cccf26ac/vars.mk (about)

     1  PKG_NAME := github.com/docker/app
     2  BIN_NAME ?= docker-app
     3  E2E_NAME := $(BIN_NAME)-e2e
     4  
     5  # Enable experimental features. "on" or "off"
     6  EXPERIMENTAL := off
     7  
     8  # Failing to resolve sh.exe to a full path denotes a windows vanilla shell.
     9  # Although 'simple' commands are still exec'ed, 'complex' ones are batch'ed instead of sh'ed.
    10  ifeq ($(SHELL),sh.exe)
    11    mkdir = mkdir $(subst /,\,$(1)) > nul 2>&1 || (exit 0)
    12    rm = del /F /Q $(subst /,\,$(1)) > nul 2>&1 || (exit 0)
    13    rmdir = rmdir /S /Q $(subst /,\,$(1)) > nul 2>&1 || (exit 0)
    14    chmod =
    15    BUILDTIME ?= unknown
    16    NULL := nul
    17  else
    18    # The no-op redirection forces make to shell out the commands instead of spawning a process as
    19    # the latter can fail on windows running cmd or powershell while having a unix style shell in the path.
    20    mkdir = mkdir -p $(1) 1>&1
    21    rm = rm -rf $(1) 1>&1
    22    rmdir = rm -rf $(1) 1>&1
    23    chmod = chmod $(1) $(2) 1>&1
    24    NULL := /dev/null
    25  endif
    26  
    27  ifeq ($(TAG),)
    28    TAG := $(shell git describe --always --dirty 2> $(NULL))
    29  endif
    30  ifeq ($(COMMIT),)
    31    COMMIT := $(shell git rev-parse --short HEAD 2> $(NULL))
    32  endif