summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-06-04 03:48:18 -0500
committerGitHub <noreply@github.com>2017-06-04 03:48:18 -0500
commite7ae13deefc3f3936793eded8551d314850f4c19 (patch)
tree2e9f71ea88078982abc0f1e60520d7cf65c76fb8 /Makefile
parent023cad4461d803f319ae723e62b5bb3b8abe90be (diff)
downloadgitea-e7ae13deefc3f3936793eded8551d314850f4c19.tar.gz
gitea-e7ae13deefc3f3936793eded8551d314850f4c19.zip
fix: error from mktemp command in MacOS. (#1837)
* fix: error from mktemp command in MacOS. * [ci skip] udpate temp name. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 84d201e234..6b0c0327a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,5 @@
DIST := dist
IMPORT := code.gitea.io/gitea
-
-ifeq ($(OS), Windows_NT)
- EXECUTABLE := gitea.exe
-else
- EXECUTABLE := gitea
-endif
-
BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
@@ -22,7 +15,13 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
TAGS ?=
-TMPDIR := $(shell mktemp -d)
+TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'gitea-temp')
+
+ifeq ($(OS), Windows_NT)
+ EXECUTABLE := gitea.exe
+else
+ EXECUTABLE := gitea
+endif
ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))