]> git.saurik.com Git - bison.git/blob - Makefile.am
Let automake put version number into documentation.
[bison.git] / Makefile.am
1 #names of parser files
2 PFILE = bison.simple
3 PFILE1 = bison.hairy
4
5 INCLUDES = -DXPFILE=\"$(datadir)/$(PFILE)\" \
6 -DXPFILE1=\"$(datadir)/$(PFILE1)\"
7
8 bin_PROGRAMS = bison
9
10 bison_SOURCES = LR0.c allocate.c closure.c conflicts.c derives.c \
11 files.c getargs.c gram.c lalr.c lex.c main.c nullable.c output.c \
12 print.c reader.c reduce.c symtab.c warshall.c version.c getopt.c \
13 getopt1.c
14
15 EXTRA_bison_SOURCES = vmsgetargs.c
16
17 bison_LDADD = @ALLOCA@
18
19 noinst_HEADERS = alloc.h files.h gram.h lex.h machine.h state.h \
20 symtab.h system.h types.h getopt.h
21
22 data_DATA = $(PFILE) $(PFILE1)
23 info_TEXINFOS = bison.texinfo
24 man_MANS = bison.1
25
26 EXTRA_DIST = $(PFILE) $(PFILE1) $(man_MANS) REFERENCES configure.bat \
27 build.com bison.cld bison.rnh vmshlp.mar
28
29 bison.simple: bison.s1 Makefile
30 -rm -f bison.simple
31 sed -e "/^#line/ s|bison|$(datadir)/bison|" -e "s/@bison_version@/$(VERSION)/" < $< > $@-tmp
32 mv $@-tmp $@