File: Makefile.in

package info (click to toggle)
f2j 0.8.1+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,152 kB
  • sloc: ansic: 18,992; java: 3,987; yacc: 3,804; sh: 153; makefile: 149
file content (58 lines) | stat: -rw-r--r-- 1,818 bytes parent folder | download | duplicates (4)
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
#  Top level makefile for the f2j system.

# $Author: keithseymour $
# $Date: 2008/06/24 21:03:43 $
# $Source: /cvsroot/f2j/f2j/Makefile.in,v $
# $Revision: 1.10 $

F2J_PACKAGE_NAME=@F2J_PACKAGE_STRING@

all:	f2java javab

install:
	cd util; $(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:
	echo "javab will not be created since it is non-free and most probably not needed any more"

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)/libbytecode
	mkdir -p $(F2J_PACKAGE_NAME)/util/org/netlib/util
	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 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