forked from on-prem/jidoteki-admin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 748 Bytes
/
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
# Makefile
# Generic
.PHONY: all check run-tests html javascript js minify ui docs java
all: check
check: run-tests
run-tests:
JIDO_ADMIN_PATH=$(PREFIX_DIR)/opt/jidoteki/tinyadmin ./test.l
html:
jade -o . -P -E html ui/index.jade
javascript:
cat ui/license.coffee ui/generic.coffee ui/ui.coffee | coffee --no-header -c -s > docs/ui.js
js: javascript
minify:
head -n 8 docs/ui.js | tail -7 > docs/ui.min.js
minify docs/ui.js >> docs/ui.min.js
java:
cd password-validator && \
javac -cp zxcvbn-1.5.2.jar ValidatePasswordStrength.java
docs:
cd docs && \
marked --gfm -i API.md -o api.tmp.html && \
cat strapdown-prefix.html api.tmp.html strapdown-suffix.html > API.html && \
rm api.tmp.html
ui: html javascript minify