Makefile
[app.Builder.js] / Makefile
1
2 #vapigen --library gobject-introspection-1.0 /usr/share/gir-1.0/GIRepository-2.0.gir
3
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
14
15 FLAGS= -g --vapidir=. 
16
17 CORESRC= JsRender/*.vala \
18                 Project/*.vala \
19                 Palete/*.vala 
20
21 BUILDER4= Builder4/Application.vala \
22                 Builder4/About.vala \
23                 Builder4/DialogConfirm.vala \
24                 Builder4/DialogNewComponent.vala \
25                 Builder4/StandardErrorDialog.vala \
26                 Builder4/DialogSaveTemplate.vala \
27                 Builder4/DialogTemplateSelect.vala \
28                 Builder4/EditProject.vala \
29                 Builder4/Editor.vala \
30                 Builder4/ProjectSettings.vala \
31                 Builder4/MainWindow.vala \
32                 Builder4/WindowRightPalete.vala \
33                 Builder4/WindowLeftTree.vala \
34                 Builder4/WindowRooView.vala \
35                 Builder4/WindowLeftProps.vala \
36                 Builder4/ClutterFiles.vala \
37                 Builder4/WindowLeftProjects.vala \
38                 Builder4/WindowAddProp.vala \
39
40
41 # for testing 
42 #all: test-leftprops
43
44 #all:  builder4
45 all: datatest;
46
47
48 builder4:
49         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
50                 Builder4/Main.vala  -o /tmp/Builder4
51
52 #-- tests 
53
54 test-leftprops:
55         valac $(FLAGS) $(PKGS) $(CORESRC) \
56                         tests/TestLeftProps.vala \
57                         Builder4/WindowLeftProps.vala \
58                         -o /tmp/test-leftprops
59
60 test-palate:
61         valac -g$(FLAGS) $(PKGS) \
62                 Builder4/WindowRightPalete.vala \
63                 tests/PaleteTest.vala -o /tmp/test-palete
64
65 #fixme -- old...
66 datatest:
67         valac -g$(FLAGS) $(PKGS) \
68                 Test.GtkWriter.vala \
69                 -o /tmp/test
70
71 clean:
72         rm -f /tmp/Builder4
73         rm -f /tmp/test-leftprops