-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
63 lines (51 loc) · 1.89 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
# Top level makefile for the f2j system.
# $Author$
# $Date$
# $Source$
# $Revision$
F2J_PACKAGE_NAME=@F2J_PACKAGE_STRING@
all: f2java javab
install:
cd util; $(MAKE) install
cd goto_trans; $(MAKE) install
cd libbytecode; $(MAKE) install
cd src; $(MAKE) install
libbytecode/libbytecode.a:
cd libbytecode; $(MAKE)
util/f2jutil.jar:
cd util; $(MAKE)
f2java: libbytecode/libbytecode.a util/f2jutil.jar
cd src; $(MAKE)
javab:
cd goto_trans; $(MAKE)
srcdist: srcdist_common
zip -r $(F2J_PACKAGE_NAME).zip $(F2J_PACKAGE_NAME)
tar cvf - $(F2J_PACKAGE_NAME) | gzip > $(F2J_PACKAGE_NAME).tgz
srcdist_common:
cd src; $(MAKE) y.tab.c
mkdir -p $(F2J_PACKAGE_NAME)/bin
mkdir -p $(F2J_PACKAGE_NAME)/src
mkdir -p $(F2J_PACKAGE_NAME)/doc
mkdir -p $(F2J_PACKAGE_NAME)/goto_trans
mkdir -p $(F2J_PACKAGE_NAME)/libbytecode
mkdir -p $(F2J_PACKAGE_NAME)/util/org/netlib/util
cd goto_trans; cp *.[ch] make.def.in README LICENSE Makefile ../$(F2J_PACKAGE_NAME)/goto_trans
cd libbytecode; cp *.[ch] *.in configure ../$(F2J_PACKAGE_NAME)/libbytecode
cd src; cp *.[chy] make.def.in LICENSE Makefile f2j-config.h.in ../$(F2J_PACKAGE_NAME)/src
cd util; cp make.def.in Makefile ../$(F2J_PACKAGE_NAME)/util
cd util; cp -r org ../$(F2J_PACKAGE_NAME)/util
cd doc; $(MAKE) f2j_ug.pdf; $(MAKE) almost_clean
cp doc/Makefile doc/*.tex doc/f2j_ug.pdf $(F2J_PACKAGE_NAME)/doc
cp README CHANGES install-sh configure configure.in f2j_TODO.txt Makefile.in $(F2J_PACKAGE_NAME)
clean:
/bin/rm -rf $(F2J_PACKAGE_NAME) $(F2J_PACKAGE_NAME).zip $(F2J_PACKAGE_NAME).tgz f2jsrc.tgz f2jsrc.zip
cd goto_trans; $(MAKE) realclean
cd libbytecode; $(MAKE) clean
cd src; $(MAKE) clean
cd util; $(MAKE) clean
cd doc; $(MAKE) clean
configclean: clean
cd libbytecode; $(MAKE) configclean
/bin/rm -rf autom4te.cache
/bin/rm -f config.log config.status config.cache Makefile src/make.def
/bin/rm -f configure goto_trans/make.def util/make.def