Updated kn translations
[gcalctool.git] / src / Makefile.am
blobd5da77ba47fb55ea5ff76e018f4298d68550f586
1 bin_PROGRAMS = gcalctool gcalccmd
2 noinst_PROGRAMS = test-number test-equation
4 TESTS = test-number test-equation
6 INCLUDES = \
7         -DUI_DIR=\""$(datadir)/gcalctool"\" \
8         -DVERSION=\""$(VERSION)"\" \
9         -DLOCALE_DIR=\""$(localedir)"\" \
10         -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
11         $(WARN_CFLAGS) \
12         $(GCALCTOOL_CFLAGS)
14 gcalctool_SOURCES = \
15         config.vapi \
16         gcalctool.vala \
17         currency.vala \
18         equation.vala \
19         equation-lexer.vala \
20         equation-parser.vala \
21         financial.vala \
22         math-buttons.vala \
23         math-converter.vala \
24         math-display.vala \
25         math-equation.vala \
26         math-preferences.vala \
27         math-variables.vala \
28         math-variable-popup.vala \
29         math-window.vala \
30         number.vala \
31         serializer.vala \
32         unit.vala
34 gcalctool_VALAFLAGS = \
35         --target-glib 2.32 \
36         --pkg posix \
37         --pkg gtk+-3.0 \
38         --pkg libxml-2.0
40 gcalctool_LDADD = \
41         $(GCALCTOOL_LIBS) \
42         -lm
44 gcalccmd_SOURCES = \
45         config.vapi \
46         gcalccmd.vala \
47         currency.vala \
48         equation.vala \
49         equation-lexer.vala \
50         equation-parser.vala \
51         number.vala \
52         serializer.vala \
53         unit.vala
55 gcalccmd_VALAFLAGS = \
56         --target-glib 2.32 \
57         --pkg posix \
58         --pkg gio-2.0 \
59         --pkg libxml-2.0
61 gcalccmd_LDADD = \
62         $(GCALCCMD_LIBS) \
63         -lm
65 test_number_SOURCES = \
66         config.vapi \
67         test-number.vala \
68         number.vala \
69         serializer.vala
71 test_number_VALAFLAGS = \
72         --target-glib 2.32 \
73         --pkg posix \
74         --pkg gio-2.0 \
75         --pkg libxml-2.0
77 test_number_LDADD = \
78         $(GCALCCMD_LIBS) \
79         -lm
81 test_equation_SOURCES = \
82         config.vapi \
83         test-equation.vala \
84         currency.vala \
85         equation.vala \
86         equation-lexer.vala \
87         equation-parser.vala \
88         number.vala \
89         serializer.vala \
90         unit.vala
92 test_equation_VALAFLAGS = \
93         --target-glib 2.32 \
94         --pkg posix \
95         --pkg gio-2.0 \
96         --pkg libxml-2.0
98 test_equation_LDADD = \
99         $(GCALCCMD_LIBS) \
100         -lm
102 # Install a symlink between gcalctool and gnome-calculator
103 install-exec-hook:
104         test -e "$(DESTDIR)$(bindir)/gnome-calculator" \
105         || (cd "$(DESTDIR)$(bindir)" && ln -s gcalctool gnome-calculator)
107 # Remove the symlink between gcalctool and gnome-calculator
108 uninstall-local:
109         test -h "$(DESTDIR)$(bindir)/gnome-calculator" \
110         && rm -f "$(DESTDIR)$(bindir)/gnome-calculator"
112 DISTCLEANFILES = \
113         Makefile.in
115 test: gcalctool
116         ./gcalctool -u