Commit a2ec610a a2ec610aafc52111a40ac6de7b77b01e987a0ca7 by Sergey Poznyakoff

Added new files. Provide for multiple parsers within an application.

1 parent af2aa7f2
...@@ -71,8 +71,9 @@ libmh_a_SOURCES= \ ...@@ -71,8 +71,9 @@ libmh_a_SOURCES= \
71 mh_format.c\ 71 mh_format.c\
72 mh_init.c\ 72 mh_init.c\
73 mh_list.c\ 73 mh_list.c\
74 mh_fmtgram.y\ 74 mh_fmtgram.c\
75 mh_msgset.c\ 75 mh_msgset.c\
76 mh_sequence.c\
76 mh_whatnow.c 77 mh_whatnow.c
77 noinst_HEADERS = mh.h mh_getopt.h 78 noinst_HEADERS = mh.h mh_getopt.h
78 79
...@@ -80,8 +81,15 @@ LISPSRC = mailutils-mh.el ...@@ -80,8 +81,15 @@ LISPSRC = mailutils-mh.el
80 lisp_LISP=@lisp_LISP@ 81 lisp_LISP=@lisp_LISP@
81 EXTRA_LISP = mailutils-mh.el 82 EXTRA_LISP = mailutils-mh.el
82 83
84 BUILT_SOURCES= \
85 mh_fmtgram.c \
86 pick-gram.c \
87 pick-gram.h
88
89 MAINTAINERCLEANFILES=$(BUILT_SOURCES)
90
83 mhlib_DATA = replcomps mhl.format $(LISPSRC) 91 mhlib_DATA = replcomps mhl.format $(LISPSRC)
84 EXTRA_DIST = replcomps mhl.format mailutils-mh.eli 92 EXTRA_DIST = replcomps mhl.format mailutils-mh.eli mh_fmtgram.y pick.y
85 DISTCLEANFILES = mailutils-mh.el 93 DISTCLEANFILES = mailutils-mh.el
86 94
87 mailutils-mh.el: mailutils-mh.eli 95 mailutils-mh.el: mailutils-mh.eli
...@@ -92,9 +100,22 @@ AM_CPPFLAGS = -DMHLIBDIR=\"$(mhlibdir)\" ...@@ -92,9 +100,22 @@ AM_CPPFLAGS = -DMHLIBDIR=\"$(mhlibdir)\"
92 mh_LIBS = ./libmh.a ../mailbox/libmailbox.la ../lib/libmailutils.la @LTLIBINTL@ 100 mh_LIBS = ./libmh.a ../mailbox/libmailbox.la ../lib/libmailutils.la @LTLIBINTL@
93 LDADD = $(mh_LIBS) 101 LDADD = $(mh_LIBS)
94 scan_LDADD = $(mh_LIBS) @CURSES_LIBS@ 102 scan_LDADD = $(mh_LIBS) @CURSES_LIBS@
103 pick_SOURCES = pick.c pick.h pick-gram.c pick-gram.h
95 104
105 YLWRAP = $(SHELL) $(top_srcdir)/scripts/ylwrap
96 AM_YFLAGS=-vt 106 AM_YFLAGS=-vt
97 107
108 pick-gram.c pick-gram.h: $(srcdir)/pick.y
109 $(YLWRAP) "$(YACC) $(AM_YFLAGS) -d" $< \
110 y.tab.c pick-gram.c y.tab.h pick-gram.h y.output pick.output \
111 -- -yy pick_yy
112
113 mh_fmtgram.c: $(srcdir)/mh_fmtgram.y
114 $(YLWRAP) "$(YACC) $(AM_YFLAGS)" $< \
115 y.tab.c mh_fmtgram.c y.output fmtgram.y.output \
116 -- -yy fmt_yy
117
118
98 install-exec-hook: @BUILD_MH_EXEC_HOOK@ 119 install-exec-hook: @BUILD_MH_EXEC_HOOK@
99 120
100 mh_finish_install: 121 mh_finish_install:
......