summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-07-13 06:09:29 -0500
committerLauris BH <lauris@nix.lv>2017-07-13 14:09:29 +0300
commitf011d6d4d7a53a99c9d213f686412513fe78d6a7 (patch)
treee8dba28d8abe85d9fdf204a5ddf8196b406462e3 /Makefile
parentb639fa16481cdd32f491a8267fc83a5a472f9093 (diff)
downloadgitea-f011d6d4d7a53a99c9d213f686412513fe78d6a7.tar.gz
gitea-f011d6d4d7a53a99c9d213f686412513fe78d6a7.zip
fix: replace tmp with TMPDIR. (#2152)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bf36ce4aa2..4e5a06c82b 100644
--- a/Makefile
+++ b/Makefile
@@ -282,9 +282,9 @@ public/css/index.css: $(STYLESHEETS)
.PHONY: swagger-ui
swagger-ui:
rm -Rf public/assets/swagger-ui
- git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git /tmp/swagger-ui
- mv /tmp/swagger-ui/dist public/assets/swagger-ui
- rm -Rf /tmp/swagger-ui
+ git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git $(TMPDIR)/swagger-ui
+ mv $(TMPDIR)/swagger-ui/dist public/assets/swagger-ui
+ rm -Rf $(TMPDIR)/swagger-ui
$(SED_INPLACE) "s;http://petstore.swagger.io/v2/swagger.json;../../swagger.v1.json;g" public/assets/swagger-ui/index.html
.PHONY: update-translations