1 bin_PROGRAMS = gcalctool gcalccmd
4 -DUI_DIR=\""$(datadir)/gcalctool"\" \
5 -DVERSION=\""$(VERSION)"\" \
6 -DLOCALE_DIR=\""$(localedir)"\" \
7 -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
27 math-variable-popup.c \
28 math-variable-popup.h \
41 mp-equation-private.h \
44 mp-equation-parser.c \
45 mp-equation-parser.h \
65 mp-equation-parser.c \
79 mp-equation-parser.h \
80 mp-equation-parser.c \
86 # Generate parser files
87 mp-equation-parser.c mp-equation-parser.h: mp-equation-parser.y mp-equation-lexer.h
88 $(AM_V_GEN)$(YACC) -d -o mp-equation-parser.c $(srcdir)/mp-equation-parser.y
90 # Generate lexer files
91 mp-equation-lexer.c mp-equation-lexer.h: mp-equation-lexer.l
92 $(AM_V_GEN)$(LEX) $(srcdir)/mp-equation-lexer.l
94 # Rebuild parser when source files change
95 mp-equation-parser.o: mp-equation-lexer.h
96 mp-equation-lexer.o: mp-equation-parser.h
97 mp-equation.c: mp-equation-lexer.h mp-equation-parser.h
100 math-enums.h: math-enums.h.template mp-serializer.h
101 $(AM_V_GEN)$(GLIB_MKENUMS) --template $(srcdir)/math-enums.h.template $(srcdir)/mp-serializer.h > math-enums.h
103 math-enums.c: math-enums.c.template math-enums.h mp-serializer.h
104 $(AM_V_GEN)$(GLIB_MKENUMS) --template $(srcdir)/math-enums.c.template $(srcdir)/mp-serializer.h > math-enums.c
107 math-serializer.c: math-enums.h
108 math-equation.c: math-enums.h
110 # Install a symlink between gcalctool and gnome-calculator
112 test -e "$(DESTDIR)$(bindir)/gnome-calculator" \
113 || (cd "$(DESTDIR)$(bindir)" && ln -s gcalctool gnome-calculator)
115 # Remove the symlink between gcalctool and gnome-calculator
117 test -h "$(DESTDIR)$(bindir)/gnome-calculator" \
118 && rm -f "$(DESTDIR)$(bindir)/gnome-calculator"
121 mp-equation-parser.y \
122 mp-equation-lexer.l \
123 math-enums.c.template \
124 math-enums.h.template