summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Weidinger <alexwegoo@gmail.com>2017-10-03 22:15:26 +0200
committerAlexander Weidinger <alexwegoo@gmail.com>2017-10-03 22:17:35 +0200
commitd71abd5ee8b34aaed7610a6b79236a424616cb5f (patch)
tree88c2bd77edfbf6becb148254431f274c919d7f4d /Makefile
parent2234d4eac48a140d371b76964001ed68da2b89e4 (diff)
Download variables.scss from nextcloud/server#master.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6df8885e..3c3d1c3a 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,17 @@ else
composer update --prefer-dist
endif
+# We need to build css files for Nextcloud 11
+# variables.scss is necessary and not provided by stable11 => download it
+.PHONY: css
+css:
+ifeq (,$(wildcard $(CURDIR)/build/css/variables.scss))
+ curl --silent --create-dirs -o $(CURDIR)/build/css/variables.scss https://raw.githubusercontent.com/nextcloud/server/master/core/css/variables.scss
+ npm run scss-compile
+else
+ npm run scss-compile
+endif
+
# Installs npm dependencies
.PHONY: npm
npm:
@@ -89,8 +100,7 @@ ifeq (,$(wildcard $(CURDIR)/package.json))
cd js && $(npm) run build
else
npm run build
- # build css file for nextcloud 11
- npm run scss-compile
+ make css
endif
# Removes the appstore build