-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
71 lines (53 loc) · 1.35 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
59
60
61
62
63
64
65
66
67
68
69
70
71
# Makefile variables
#FOO?=foo value
# Build java app
build:
foo
# Remove logs, cached and temp files (This should not reset already resolved dependencies)
clean:
foo
# Prepare required config files. For example, create them using scripts or copy them from .example files
configs:
foo
# Download and prepare dependencies (This should not reset already resolved dependencies)
deps:
foo
# Reset dependencies
deps_clean:
foo
# Run migrations
migrate:
foo
# Run migrations in test db
migrate_test_db:
foo
# Create appropriate folders if missing and change permissions
prepare_folders:
foo
# Create db if needed and prepare it
prepare_db:
foo
# Create test db if needed and prepare it
prepare_test_db:
foo
# Start the main process. This can be a server or any service
run:
foo
# Start the main process in the foreground. This can be a server or any service
run_foreground:
foo
# Insert data seeds in db
seeds:
foo
# Install system dependencies. This is mostly used in linux machines to validate all system dependencies are resolved.
system_deps:
if [[ $(uname) == "Linux" ]]; then
foo
fi
# Run tests
test:
foo
# Watch the test files for changes and run tests when needed
watch_and_test:
foo
.PHONY: clean configs deps deps_clean migrate migrate_test prepare_folders prepare_db prepare_test_db run run_foreground seeds system_deps test watch_and_test