Remove reference to removed source file
[gcalctool.git] / src / Makefile.am
blob188908c2e0ed5b74bc39cd3ae8a0acd92b30331b
1 bin_PROGRAMS = gcalctool gcalccmd
2 noinst_PROGRAMS = test-mp test-mp-equation
4 TESTS = test-mp test-mp-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         gcalctool.c \
16         currency.c \
17         currency.h \
18         currency-manager.c \
19         currency-manager.h \
20         math-buttons.c \
21         math-buttons.h \
22         math-converter.c \
23         math-converter.h \
24         math-display.c \
25         math-display.h \
26         math-equation.c \
27         math-equation.h \
28         math-preferences.c \
29         math-preferences.h \
30         math-variables.c \
31         math-variables.h \
32         math-variable-popup.c \
33         math-variable-popup.h \
34         math-window.c \
35         math-window.h \
36         mp.c \
37         mp.h \
38         mp-binary.c \
39         mp-convert.c \
40         mp-enums.c \
41         mp-enums.h \
42         mp-equation.c \
43         mp-equation.h \
44         mp-private.h \
45         mp-serializer.c \
46         mp-serializer.h \
47         mp-trigonometric.c \
48         financial.c \
49         financial.h \
50         unit.c \
51         unit.h \
52         unit-category.c \
53         unit-category.h \
54         unit-manager.c \
55         unit-manager.h \
56         prelexer.c \
57         prelexer.h \
58         lexer.c \
59         lexer.h \
60         parserfunc.c \
61         parserfunc.h \
62         parser.c \
63         parser.h
65 gcalctool_LDADD = \
66         $(GCALCTOOL_LIBS)        
68 gcalccmd_SOURCES = \
69         gcalccmd.c \
70         currency.c \
71         currency.h \
72         currency-manager.c \
73         currency-manager.h \
74         mp.c \
75         mp-binary.c \
76         mp-convert.c \
77         mp-enums.c \
78         mp-enums.h \
79         mp-equation.c \
80         mp-serializer.c \
81         mp-serializer.h\
82         mp-trigonometric.c \
83         unit.c \
84         unit.h \
85         unit-category.c \
86         unit-category.h \
87         unit-manager.c \
88         unit-manager.h \
89         prelexer.c \
90         prelexer.h \
91         lexer.c \
92         lexer.h \
93         parserfunc.c \
94         parserfunc.h \
95         parser.c \
96         parser.h
98 gcalccmd_LDADD = \
99         $(GCALCCMD_LIBS) \
100         -lm
102 test_mp_SOURCES = \
103         test-mp.c \
104         mp.c \
105         mp-binary.c \
106         mp-convert.c \
107         mp-enums.c \
108         mp-enums.h \
109         mp-serializer.c \
110         mp-serializer.h \
111         mp-trigonometric.c
113 test_mp_LDADD = \
114         $(GCALCCMD_LIBS) \
115         -lm
117 test_mp_equation_SOURCES = \
118         test-mp-equation.c \
119         currency.c \
120         currency.h \
121         currency-manager.c \
122         currency-manager.h \
123         mp.c \
124         mp-convert.c \
125         mp-binary.c \
126         mp-enums.c \
127         mp-enums.h \
128         mp-equation.c \
129         mp-serializer.c \
130         mp-serializer.h \
131         mp-trigonometric.c \
132         unit.c \
133         unit.h \
134         unit-category.c \
135         unit-category.h \
136         unit-manager.c \
137         unit-manager.h \
138         prelexer.c \
139         prelexer.h \
140         lexer.c \
141         lexer.h \
142         parserfunc.c \
143         parserfunc.h \
144         parser.c \
145         parser.h
147 test_mp_equation_LDADD = \
148         $(GCALCCMD_LIBS) \
149         -lm
151 CLEANFILES = \
152         mp-enums.c \
153         mp-enums.h
155 # Generate enum types
156 mp-enums.h: mp-enums.h.template mp-serializer.h
157         $(AM_V_GEN)$(GLIB_MKENUMS) --template $(srcdir)/mp-enums.h.template $(srcdir)/mp-serializer.h > mp-enums.h
159 mp-enums.c: mp-enums.c.template mp-enums.h mp-serializer.h
160         $(AM_V_GEN)$(GLIB_MKENUMS) --template $(srcdir)/mp-enums.c.template $(srcdir)/mp-serializer.h > mp-enums.c
162 # Fix dependencies
163 math-serializer.c: mp-enums.h
164 math-equation.c: mp-enums.h
166 # Install a symlink between gcalctool and gnome-calculator
167 install-exec-hook:
168         test -e "$(DESTDIR)$(bindir)/gnome-calculator" \
169         || (cd "$(DESTDIR)$(bindir)" && ln -s gcalctool gnome-calculator)
171 # Remove the symlink between gcalctool and gnome-calculator
172 uninstall-local:
173         test -h "$(DESTDIR)$(bindir)/gnome-calculator" \
174         && rm -f "$(DESTDIR)$(bindir)/gnome-calculator"
176 EXTRA_DIST = \
177         mp-enums.c.template \
178         mp-enums.h.template
180 DISTCLEANFILES = \
181         Makefile.in
183 test: gcalctool
184         ./gcalctool -u