-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
67 lines (59 loc) · 1.46 KB
/
GNUmakefile
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
all: i-jz-form
i-jz-form :: src
i-jz-form :: blocks/i-jz-form blocks/i-jquery
JQUERY_FILES=$(foreach I,memoize fieldselection,blocks/i-jquery/__$I/i-jquery__$I.js)
blocks/i-jquery: $(JQUERY_FILES)
$(JQUERY_FILES):
mkdir -p $(@D)
cp src/js/jquery/$(subst i-jquery__,jquery.,$(@F)) $@
blocks/i-jz-form: blocks/i-jz-form/__core/i-jz-form__core.js
blocks/i-jz-form/__core/i-jz-form__core.js: $(addprefix src/js/,\
JZ.js\
$(addprefix JZ/,\
Observable.js \
Widget.js \
$(addprefix Widget/,\
Input.js \
Input/Text.js \
Input/Text/Number.js \
Input/Text/Combo.js \
Input/Select.js \
Input/State.js \
Button.js \
Button/Submit.js \
Container.js \
Container/StateGroup.js \
Container/StateGroup/CheckBoxes.js \
Container/StateGroup/RadioButtons.js \
Container/Date.js \
Container/Date/Time.js \
Container/Form.js) \
Storage.js \
Storage/Local.js \
Storage/Remote.js \
Value.js \
Value/Number.js \
Value/Multiple.js \
Value/Date.js \
Value/Date/Time.js \
Dependence.js \
Dependence/Composition.js \
Dependence/Composition/NOT.js \
Dependence/Composition/OR.js \
Dependence/Composition/AND.js \
Dependence/Required.js \
Dependence/Valid.js \
Dependence/Enabled.js \
Builder.js \
Resources.js))
mkdir -p $(@D)
cat $^ > $@
DO_GIT=@echo git $1 $2; \
if [ -d $2 ]; \
then \
cd $2 && git pull origin master; \
else \
git clone $1 $2; \
fi
src:
$(call DO_GIT,git://github.com/mishanga/jz.git,$@)