Skip to content

Commit ba4e744

Browse files
committed
Now compile rule supported VERBOSE option
1 parent 48c76f7 commit ba4e744

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,15 @@ else
138138
$(eval LINT_FLAGS :=)
139139
endif
140140

141+
ifeq "$(MAKE_VERBOSE)" "true"
142+
@echo "$(PREFIX) Verbose output is ACTIVATED."
143+
$(eval VERBOSE_FLAGS := -verbose)
144+
else
145+
$(eval VERBOSE_FLAGS :=)
146+
endif
147+
141148
@echo "$(PREFIX) Compiling all source files..."
142-
@$(CC) -d $(CLASSES_PATH) @$< $(LINT_FLAGS) $(FLAGS)
149+
@$(CC) -d $(CLASSES_PATH) @$< $(LINT_FLAGS) $(VERBOSE_FLAGS) $(FLAGS)
143150
@echo "$(PREFIX) Successfully compiled all source files."
144151

145152
$(eval HAS_COMPILED := $(wildcard $(CLASSES_PATH)))

docs/makefile-usage.txt

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
Rules:
2-
* compile - Compiles the project.
3-
* package - Creates archived package of compiled classes.
4-
WARNING: The project needs to be compiled first!
5-
* clean - Cleans all of compiled classes and created jar.
6-
* cleanbin - Cleans all compiled class files only.
7-
* check-verbose - Checks the verbose status.
8-
* usage - Prints the example usages for building the project.
9-
* build-docs - Builds the HTML pages of JMatrix's javadocs.
1+
Usage:
2+
$ make [rules] [...] [options] [...]
3+
$ make [rules] [VERBOSE[=<bool>] | INCLUDE-SRC[=<bool>]]
4+
$ make [rules] [LINT[=<bool>] | FLAGS[=<flags>]]
105

11-
Additional Options:
6+
Rules:
7+
* compile - Compiles the project.
8+
* package - Creates archived package of compiled classes.
9+
WARNING: The project needs to be compiled first!
10+
* clean - Cleans all of compiled classes and created jar.
11+
* cleanbin - Cleans all compiled class files only.
12+
* cleandocs - Cleans all generated HTML documentations only.
13+
* check-verbose - Checks the verbose status.
14+
* usage - Prints the example usages for building the project.
15+
* build-docs - Builds the HTML pages of JMatrix's javadocs.
16+
17+
Additional Options:
1218
- Activating verbose output
1319

1420
$ export VERBOSE=true && make [rules]
@@ -32,18 +38,13 @@ Additional Options:
3238

3339
$ make compile FLAGS[=<flags>]
3440

35-
Usage:
36-
$ make [rules] [...] [arguments]
37-
$ make [rules] [VERBOSE[=<bool>] | INCLUDE-SRC[=<bool>]]
38-
$ make [rules] (LINT[=<bool>] | FLAGS[=<flags>])
39-
40-
Tips:
41+
Tips:
4142
- Combine the rules; `Make` can understand multiple rules.
4243
Except for `build-docs` rule, it should be built as a standalone rule.
4344

44-
Issues:
45+
Issues:
4546
Report any issues or suggestions, and help improve JMatrix.
4647
<https://github.com/mitsuki31/jmatrix/issues/new>
4748

48-
Author:
49+
Author:
4950
Ryuu Mitsuki

0 commit comments

Comments
 (0)