blob: 53844b2bf96c108495fa36e8d9a3b881acdf4fa8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# vim: set sw=8 ts=8 sts=8 noet:
NULL =
EXTRA_DIST = autogen.sh Makefile.simple
bin_PROGRAMS = parser
noinst_LIBRARIES = libparser.a
AM_CPPFLAGS = -I$(top_srcdir)/src
parser_CFLAGS = $(WARN_CFLAGS)
parser_SOURCES = \
src/main.c \
src/ast.h \
src/ast.c \
src/symbol-table.h \
src/symbol-table.c \
$(NULL)
parser_LDADD = \
libparser.a \
$(NULL)
libparser_a_YFLAGS = -d
libparser_a_SOURCES = \
src/lexer.l \
src/parser.y \
$(NULL)
src/lexer.o:
@touch src/lexer.o
BUILT_SOURCES = src/lexer.c
submit_dir_name = hw
submit_tarball_prefix = b01902054_b01902062
submit: dist
tar -zxf $(DIST_ARCHIVES)
mv $(distdir) $(submit_dir_name)
cp -a $(submit_dir_name)/Makefile.simple $(submit_dir_name)/Makefile
rm $(submit_dir_name)/src/lexer.c
rm $(submit_dir_name)/src/libparser_a-parser.h
rm $(submit_dir_name)/src/libparser_a-parser.c
ver=`git rev-list HEAD | wc -l` && tar -jpcf \
$(submit_tarball_prefix)_ver$$ver.tar.bz2 $(submit_dir_name)
rm -rf $(submit_dir_name)
|