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 # compile what... for testing 
42 #all:  builder4
43 #all: test-leftprops
44 all: test-palate
45
46
47 builder4:
48         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
49                 Builder4/Main.vala  -o /tmp/Builder4
50
51 #-- tests 
52
53 test-leftprops:
54         valac $(FLAGS) $(PKGS) $(CORESRC) \
55                         tests/TestLeftProps.vala \
56                         Builder4/WindowLeftProps.vala \
57                         -o /tmp/test-leftprops
58
59 test-palate:
60         valac -g$(FLAGS) $(PKGS) \
61                 Builder4/WindowRightPalete.vala \
62                 tests/PaleteTest.vala -o /tmp/test-palete
63
64 #fixme -- old...
65 datatest:
66         valac -g$(FLAGS) $(PKGS) \
67                 Test.GtkWriter.vala \
68                 -o /tmp/test
69
70 clean:
71         rm -f /tmp/Builder4
72         rm -f /tmp/test-leftprops