-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.in
84 lines (65 loc) · 2.17 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
# @configure_input@
# Copyright (C) 2003, 2004, 2005 Kevin P. Scannell <[email protected]>
#
# This is free software; see the file COPYING for copying conditions. There is
# NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
@SET_MAKE@
SHELL = @SHELL@
PACKAGE_NAME = @PACKAGE_NAME@
TARBALL = @PACKAGE_TARNAME@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
CC = @CC@
CFLAGS = @CFLAGS@
DEFS = -DLOCALEDIR=\"po\" @DEFS@
ECHO = echo
EGREP = @EGREP@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LN_S = @LN_S@
PERL = @PERL@
YACC = @YACC@
###############################################################################
# .IN FILE GRAMMAR/PARSER
###############################################################################
all : FORCE
parsers : aparser rparser
aonchiall.y : ponc.in.y
cat ponc.in.y | sed "s/_TAIL_MACRO_/result/; s/_RESULT_MACRO_/POSTAG/" > aonchiall.y
rialacha.y : ponc.in.y
cat ponc.in.y | sed "s/_TAIL_MACRO_/result/; s/_RESULT_MACRO_/MESSAGE | MESSAGEPLUS MESSAGEARG/" > rialacha.y
aparser : aonchiall.y ponc.in.l gettext.h
$(LEX) ponc.in.l
$(YACC) -d aonchiall.y
$(CC) -c $(CFLAGS) $(DEFS) $(LEX_OUTPUT_ROOT).c y.tab.c
$(CC) -o aparser $(CFLAGS) $(LEX_OUTPUT_ROOT).o y.tab.o $(LEXLIB)
rparser : rialacha.y ponc.in.l gettext.h
$(LEX) ponc.in.l
$(YACC) -d rialacha.y
$(CC) -c $(CFLAGS) $(DEFS) $(LEX_OUTPUT_ROOT).c y.tab.c
$(CC) -o rparser $(CFLAGS) $(LEX_OUTPUT_ROOT).o y.tab.o $(LEXLIB)
###############################################################################
# AUTOCONF STUFF AND CLEANUP #
###############################################################################
configure: configure.ac
autoconf
Makefile : Makefile.in config.status
./config.status
chmod 444 Makefile
config.status: configure
./config.status --recheck
distclean :
cd po && $(MAKE) distclean
$(MAKE) topclean
rm -f config.log config.status Makefile
topclean :
$(MAKE) semiclean
rm -f aparser rparser *.c~ ChangeLog.bak messages.pl
clean :
cd po && $(MAKE) clean
$(MAKE) topclean
semiclean :
rm -f y.tab.* $(LEX_OUTPUT_ROOT).* aonchiall.y rialacha.y
FORCE :