Makefile
[app.Builder.js] / Makefile
1
2 #vapigen --library gobject-introspection-1.0 /usr/share/gir-1.0/GIRepository-2.0.gir
3 VALAVER=`pkg-config --list-all  | grep libvala | sort -n | awk '{ print $1 }'`
4
5 PKGS=   --pkg gtk+-3.0 \
6                 --pkg gtksourceview-3.0 \
7                 --pkg libxml-2.0 \
8                 --pkg json-glib-1.0 \
9                 --pkg gee-1.0 \
10                 --pkg gobject-introspection-1.0 \
11                 --pkg webkit2gtk-3.0 \
12                 --pkg clutter-gtk-1.0 \
13                 --pkg gladeui-2.0 \
14                 --pkg libsoup-2.4 \
15                 --pkg javascriptcore  \
16                 --pkg  vte-2.90  \
17                 --pkg ${VALAVER}  \
18                 --pkg posix \
19
20 FLAGS= -g --vapidir=./vapi 
21
22 CORESRC=        JsRender/*.vala \
23                 Project/*.vala \
24                 Palete/*.vala \
25                 Builder4/Application.vala
26
27 BUILDER4=   Builder4/About.vala \
28                 Builder4/DialogConfirm.vala \
29                 Builder4/DialogNewComponent.vala \
30                 Builder4/StandardErrorDialog.vala \
31                 Builder4/DialogSaveTemplate.vala \
32                 Builder4/DialogSaveModule.vala \
33                 Builder4/DialogTemplateSelect.vala \
34                 Builder4/EditProject.vala \
35                 Builder4/Editor.vala \
36                 Builder4/ProjectSettings.vala \
37                 Builder4/WindowRightPalete.vala \
38                 Builder4/WindowLeftTree.vala \
39                 Builder4/WindowRooView.vala \
40                 Builder4/WindowLeftProps.vala \
41                 Builder4/ClutterFiles.vala \
42                 Builder4/WindowLeftProjects.vala \
43                 Builder4/WindowAddProp.vala \
44                 Builder4/GtkView.vala \
45                 Builder4/MainWindow.vala \
46                 
47 #              Builder4/GladeView.vala \
48
49
50 # compile what... for testing 
51 all:  builder4
52 #all: test-leftprops
53 #all: test-palate
54 #all: test-addprops
55 #all: test-glade
56 #all: test-gtkview
57 #all: test-vala
58 #all: test-gir
59 #all: test-pack
60 #all: test-codevalidate
61
62 builder4:
63         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
64                 Builder4/Main.vala  -o /tmp/Builder4
65
66 #-- tests 
67  
68 test-leftprops:
69         valac $(FLAGS) $(PKGS) $(CORESRC) \
70                         tests/TestLeftProps.vala \
71                         Builder4/WindowLeftProps.vala \
72                         -o /tmp/test-leftprops
73
74 test-palate:
75         valac $(FLAGS) $(PKGS) $(CORESRC)  \
76                 Builder4/WindowRightPalete.vala \
77                 tests/PaleteTest.vala -o /tmp/test-palete
78
79 test-glade:
80         valac $(FLAGS) $(PKGS) $(CORESRC)  \
81                 Builder4/GladeView.vala \
82                 tests/GladeTest.vala -o /tmp/test-glade
83
84
85 test-gtkview:
86         valac $(FLAGS) $(PKGS) $(CORESRC)  \
87                 Builder4/GtkView.vala \
88                 tests/GtkView.vala -o /tmp/test-gtkview
89
90
91 test-addprops:
92         valac $(FLAGS) $(PKGS) $(CORESRC)  \
93                 Builder4/WindowAddProp.vala \
94                 tests/AddPropTest.vala -o /tmp/test-addprops
95
96 test-vala: 
97         valac $(FLAGS) $(PKGS) $(CORESRC)  \
98                 Builder4/WindowAddProp.vala \
99                 tests/ValaTest.vala -o /tmp/test-vala
100
101 test-gir: 
102         valac $(FLAGS) $(PKGS) $(CORESRC)  \
103                 tests/GirTest.vala -o /tmp/test-gir
104
105 test-pack: 
106         valac $(FLAGS) $(PKGS) $(CORESRC)  \
107                 tests/PackTest.vala -o /tmp/test-pack
108
109 test-codevalidate:
110         valac $(FLAGS) $(PKGS) $(CORESRC)  \
111                 tests/JsCoreTest.vala -o /tmp/test-codevalidate
112
113
114 #fixme -- old...
115 datatest:
116          valac $(FLAGS) $(PKGS) $(CORESRC) \
117                 Test.GtkWriter.vala -o /tmp/test-data
118
119
120 clean:
121         rm -f /tmp/Builder4
122         rm -f /tmp/test-leftprops