-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
58 lines (53 loc) · 1.23 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
58
################################
# Project Configuration Makefile
#
# setup
# - Initialize the project for development.
# - Calls './dev/setup.sh'.
#
# validate
# - Validate the project against static analysis.
# - Calls './dev/validate.sh'.
#
# build-dev
# - Compile the project for localized usage.
# - Calls './dev/build-dev.sh'.
#
# build-production
# - Compile the project for production or public usage.
# - Calls './dev/build-production.sh'.
#
################################
setup:
@echo "Task: 'setup'"
@mkdir -p "dev"
@touch ./dev/setup.sh
@chmod +x ./dev/setup.sh
sh ./dev/setup.sh
validate:
@echo "Task: 'validate'"
@mkdir -p "dev"
@touch ./dev/validate.sh
@chmod +x ./dev/validate.sh
sh ./dev/validate.sh
build-dev:
@echo "Task: 'build-dev'"
@mkdir -p "dev"
@touch ./dev/build-dev.sh
@chmod +x ./dev/build-dev.sh
sh ./dev/build-dev.sh
make validate
build-production:
@echo "Task: 'build-production'"
@mkdir -p "dev"
@touch ./dev/build-production.sh
@chmod +x ./dev/build-production.sh
sh ./dev/build-production.sh
make validate
build-distribution:
@echo "Task: build-distribution"
@mkdir -p "dev"
@touch ./dev/build-distribution.sh
@chmod +x ./dev/build-distribution.sh
sh ./dev/build-distribution.sh
make validate