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                 --pkg gladeui-2.0 \
14                 --pkg libsoup-2.4
15
16
17 FLAGS= -g --vapidir=. 
18
19 CORESRC=        JsRender/*.vala \
20                 Project/*.vala \
21                 Palete/*.vala \
22                 Builder4/Application.vala
23
24 BUILDER4=   Builder4/About.vala \
25                 Builder4/DialogConfirm.vala \
26                 Builder4/DialogNewComponent.vala \
27                 Builder4/StandardErrorDialog.vala \
28                 Builder4/DialogSaveTemplate.vala \
29                 Builder4/DialogSaveModule.vala \
30                 Builder4/DialogTemplateSelect.vala \
31                 Builder4/EditProject.vala \
32                 Builder4/Editor.vala \
33                 Builder4/ProjectSettings.vala \
34                 Builder4/WindowRightPalete.vala \
35                 Builder4/WindowLeftTree.vala \
36                 Builder4/WindowRooView.vala \
37                 Builder4/WindowLeftProps.vala \
38                 Builder4/ClutterFiles.vala \
39                 Builder4/WindowLeftProjects.vala \
40                 Builder4/WindowAddProp.vala \
41                 Builder4/GladeView.vala \
42                 Builder4/MainWindow.vala \
43                 
44
45 # compile what... for testing 
46 all:  builder4
47 #all: test-leftprops
48 #all: test-palate
49 #all: test-addprops
50 #all: test-glade
51 #all: test-vala
52 #all: test-gir
53
54
55 builder4:
56         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
57                 Builder4/Main.vala  -o /tmp/Builder4
58
59 #-- tests 
60  
61 test-leftprops:
62         valac $(FLAGS) $(PKGS) $(CORESRC) \
63                         tests/TestLeftProps.vala \
64                         Builder4/WindowLeftProps.vala \
65                         -o /tmp/test-leftprops
66
67 test-palate:
68         valac $(FLAGS) $(PKGS) $(CORESRC)  \
69                 Builder4/WindowRightPalete.vala \
70                 tests/PaleteTest.vala -o /tmp/test-palete
71
72 test-glade:
73         valac $(FLAGS) $(PKGS) $(CORESRC)  \
74                 Builder4/GladeView.vala \
75                 tests/GladeTest.vala -o /tmp/test-glade
76
77
78 test-glade:
79         valac $(FLAGS) $(PKGS) $(CORESRC)  \
80                 Builder4/GtkView.vala \
81                 tests/GtkTest.vala -o /tmp/test-glade
82
83
84 test-addprops:
85         valac $(FLAGS) $(PKGS) $(CORESRC)  \
86                 Builder4/WindowAddProp.vala \
87                 tests/AddPropTest.vala -o /tmp/test-addprops
88
89 test-vala: 
90         valac $(FLAGS) $(PKGS) $(CORESRC)  \
91                 Builder4/WindowAddProp.vala \
92                 tests/ValaTest.vala -o /tmp/test-vala
93
94 test-gir: 
95         valac $(FLAGS) $(PKGS) $(CORESRC)  \
96                 tests/GirTest.vala -o /tmp/test-gir
97
98
99 #fixme -- old...
100 datatest:
101          valac $(FLAGS) $(PKGS) $(CORESRC) \
102                 Test.GtkWriter.vala -o /tmp/test-data
103
104
105 clean:
106         rm -f /tmp/Builder4
107         rm -f /tmp/test-leftprops