-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
86 lines (64 loc) · 1.76 KB
/
Makefile.in
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
SHELL=/bin/sh
####################################
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
EXE = @EXE@
SHAREDFLAG = @SHAREDFLAG@
CFLAGS = @CFLAGS@
MATHLIB = @MATHLIB@
SOCKET_LIBS = @SOCKET_LIBS@
YACC = @YACC@
AWK = @AWK@
CMP = @CMP@
# where to put awka
prefix = @prefix@
exec_prefix = @exec_prefix@
BINDIR = @bindir@
LIBDIR = @libdir@
INCDIR = @includedir@
# where to put the man pages
MANEXT = @MANEXT@
MANSRCDIR = @mandir@
MANDIR = $(MANSRCDIR)/man$(MANEXT)
SHARED_LIB = @SHARED_LIB@
BUILDLIB = libawka.a $(SHARED_LIB)
#######################################
MAKEFILEIN = Makefile.in lib/Makefile.in awka/Makefile.in test/Makefile.in benchmark/Makefile.in
all: awka_exe libawka
Makefile: $(MAKEFILEIN) config.status
/bin/sh ./config.status
libawka:
cd lib; $(MAKE)
awka_exe:
cd awka; $(MAKE)
AWKAMAN = $(MANDIR)/awka.$(MANEXT)
install: awka_exe libawka
if [ ! -d $(LIBDIR) ]; then mkdir -p $(LIBDIR); fi
if [ ! -d $(INCDIR) ]; then mkdir -p $(INCDIR); fi
if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR); fi
if [ ! -d $(MANDIR) ]; then mkdir -p $(MANDIR); fi
if [ ! -d $(MANSRCDIR)/man5 ]; then mkdir -p $(MANSRCDIR)/man5; fi
cd awka; $(MAKE) install
cd lib; $(MAKE) install
cp docs/awka.1 $(AWKAMAN)
cp docs/awka-elm.5 $(MANSRCDIR)/man5
cp docs/awka-elmref.5 $(MANSRCDIR)/man5
chmod 0644 $(AWKAMAN)
clean:
cd awka; $(MAKE) clean
cd lib; $(MAKE) clean
cd test; $(MAKE) clean
cd benchmark; $(MAKE) clean
distclean: clean
rm -f config.h Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile \
config.status config.log config.cache
rm -f defines.out maxint.out
configure: configure.in awka.ac.m4
autoconf
check: awka_exe libawka
cd test; $(MAKE) -k
test: check
timeit: awka_exe libawka
cd benchmark; $(MAKE) -k
benchmark: timeit