forked from OpenCMISS/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 841 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: summary prod debug apidoc prep clean
APIDOC ?= yes
SITE_ENV ?= staging
prod : summary clean deps apidoc
ifndef SITE_URL
echo "Error: Site URL not set. Production builds will not work without site url being set to generate a sitemap. Set with SITE_URL=[url]"
exit 1
endif
grunt --siteurl=$(SITE_URL) --site-env=$(SITE_ENV)
debug: summary clean deps apidoc
grunt serve
summary:
ifeq ($(APIDOC),no)
@echo "API Documentation: disabled (API docs will not be included in the build. Only use this if you are generating the site for testing purposes.)"
endif
apidoc:
ifeq ($(APIDOC),yes)
make -C apidoc
mkdir extgen/documentation
cp -r apidoc/build/apidoc extgen/documentation
endif
deps :
virtualenv .pythonenv
.pythonenv/bin/pip install -r requirements.txt
npm install
bower install
clean :
rm -rf extgen
mkdir extgen