forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (50 loc) · 1.58 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
.SUFFIXES: .js .css .html
NODE=node
RM=rm -f
GENERATED_SOURCES=src/cli/init-config/config.js.template.js \
src/report/dot/dot.template.js \
src/report/html/html.template.js \
src/report/error-html/error-html.template.js \
src/schema/configuration.schema.json \
src/schema/cruise-result.schema.json
SCHEMA_SOURCES=utl/schema/compound-exclude-type.js \
utl/schema/compound-donot-follow-type.js \
utl/schema/dependencies.js \
utl/schema/dependency-type.js \
utl/schema/module-system-type.js \
utl/schema/module-systems-type.js \
utl/schema/modules.js \
utl/schema/options-used.js \
utl/schema/options.js \
utl/schema/output-type.js \
utl/schema/reporter-options.js \
utl/schema/restrictions.js \
utl/schema/rule-set.js \
utl/schema/rule-summary.js \
utl/schema/severity-type.js \
utl/schema/summary.js
.PHONY: help dev-build clean
help:
@echo
@echo " -------------------------------------------------------- "
@echo "| More information and other targets: open the Makefile |"
@echo " -------------------------------------------------------- "
@echo
@echo "Useful targets:"
@echo
@echo "dev-build. If necessary this ..."
@echo "- ... recompiles the handlebar templates"
@echo
@echo "clean. Removes all generated sources."
@echo
@echo "uses to infer whether re-compilation is necessary."
@echo
# production rules
src/%.template.js: src/%.template.hbs
npx handlebars --commonjs handlebars/runtime -f $@ $<
src/%.schema.json: utl/%.schema.js $(SCHEMA_SOURCES)
$(NODE) ./utl/generate-schemas.utl.js
# "phony" targets
dev-build: $(GENERATED_SOURCES)
clean:
$(RM) $(GENERATED_SOURCES)