1SUBDIRS = peg-0.1.9
2
3noinst_LTLIBRARIES = libpegmarkdown.la
4
5libpegmarkdown_la_CPPFLAGS = $(GEANY_CFLAGS)
6libpegmarkdown_la_LIBADD = $(GEANY_LIBS)
7libpegmarkdown_la_SOURCES = \
8	markdown_lib.c \
9	markdown_lib.h \
10	markdown_output.c \
11	markdown_parser.c \
12	markdown_peg.h \
13	odf.c \
14	odf.h \
15	parsing_functions.c \
16	parsing_functions.h \
17	utility_functions.c \
18	utility_functions.h
19
20LEG = peg-0.1.9/leg
21
22$(LEG):
23	$(MAKE) -C peg-0.1.9 leg
24
25markdown_parser.c: markdown_parser.leg $(LEG)
26	$(AM_V_GEN)$(LEG) -o $@ $<
27
28CLEANFILES = markdown_parser.c
29EXTRA_DIST = markdown_parser.leg
30