forked from seedstack/seedstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (41 loc) · 1.6 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MVN_THREADS=1C
# Run the showcase webapp in jetty
run-showcase: build-showcase
(cd showcase/web && mvn jetty:run)
# Initialize the submodules
init:
git submodule init
git submodule update
# Update all code to the latest version
fetch:
git submodule foreach git fetch
# Build all the stack
build: build-distribution build-showcase
# Clean all the build outputs
clean:
find . -maxdepth 2 -name "pom.xml" -exec mvn -f {} clean \;
find . -maxdepth 2 -name "gruntfile.js" -exec grunt --gruntfile {} clean \;
find . -maxdepth 2 -name "node_modules" -exec rm -rf {} \;
# Available build targets
build-poms:
(cd poms && mvn -T${MVN_THREADS} install)
build-seed: build-poms
(cd seed && mvn -T${MVN_THREADS} install)
build-w20:
(cd w20 && npm install && grunt)
build-w20-business-theme: build-w20
(cd w20-business-theme && npm install && grunt)
build-business: build-seed build-poms
(cd business && mvn -T${MVN_THREADS} install)
build-io-function: build-seed build-poms
(cd io-function && mvn -T${MVN_THREADS} install)
build-i18n-function: build-business build-seed build-poms
(cd i18n-function && mvn -T${MVN_THREADS} install)
build-w20-function: build-seed build-poms build-w20
(cd w20-function && mvn -T${MVN_THREADS} install)
build-distribution: build-poms build-seed build-business build-w20-function build-io-function build-i18n-function
(cd distribution && mvn -T${MVN_THREADS} install)
build-ecommerce-domain-sample: build-distribution
(cd ecommerce-domain-sample && mvn -T${MVN_THREADS} install)
build-showcase: build-distribution build-ecommerce-domain-sample
(cd showcase && mvn -T${MVN_THREADS} install)