annotate liboctave/cruft/ranlib/module.mk @ 18138:a99bbbcf743c stable

Fix race condition when building in cruft directory (bug #40901). * liboctave/cruft/ranlib/module.mk: Create ranlib in build directory if it does not exist. * liboctave/cruft/slatec-fn/module.mk: Create slatec-fn in build directory if it does not exist.
author Rik <rik@octave.org>
date Sun, 15 Dec 2013 19:31:18 -0800
parents e359158c917f
children 3087dc835497
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 EXTRA_DIST += \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 ranlib/module.mk \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 ranlib/Basegen.doc \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 ranlib/HOWTOGET \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 ranlib/README \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 ranlib/randlib.chs \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 ranlib/randlib.fdoc \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 ranlib/tstbot.for \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 ranlib/tstgmn.for \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 ranlib/tstmid.for
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
15277
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
12 RANLIB_SRC = \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 ranlib/advnst.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 ranlib/genbet.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 ranlib/genchi.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 ranlib/genexp.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 ranlib/genf.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 ranlib/gengam.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 ranlib/genmn.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 ranlib/genmul.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 ranlib/gennch.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 ranlib/gennf.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 ranlib/gennor.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 ranlib/genprm.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 ranlib/genunf.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 ranlib/getcgn.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 ranlib/getsd.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 ranlib/ignbin.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 ranlib/ignlgi.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 ranlib/ignnbn.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 ranlib/ignpoi.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 ranlib/ignuin.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 ranlib/initgn.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 ranlib/inrgcm.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 ranlib/lennob.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 ranlib/mltmod.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 ranlib/phrtsd.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 ranlib/qrgnin.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 ranlib/ranf.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 ranlib/setall.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 ranlib/setant.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 ranlib/setgmn.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 ranlib/setsd.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 ranlib/sexpo.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 ranlib/sgamma.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 ranlib/snorm.f \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 ranlib/wrap.f
15277
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
48
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
49 noinst_LTLIBRARIES += ranlib/libranlib.la
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
50
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
51 ranlib_libranlib_la_SOURCES = $(RANLIB_SRC)
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
52
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
53 ranlib_libranlib_la_DEPENDENCIES = ranlib/ranlib.def
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
54
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
55 ## Special rules for files which must be built before compilation
18138
a99bbbcf743c Fix race condition when building in cruft directory (bug #40901).
Rik <rik@octave.org>
parents: 15277
diff changeset
56 ## ranlib directory may not exist in VPATH build; create it if necessary.
15277
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
57 ranlib/ranlib.def: $(RANLIB_SRC) mkf77def
18138
a99bbbcf743c Fix race condition when building in cruft directory (bug #40901).
Rik <rik@octave.org>
parents: 15277
diff changeset
58 @-if ! test -d ranlib; then \
a99bbbcf743c Fix race condition when building in cruft directory (bug #40901).
Rik <rik@octave.org>
parents: 15277
diff changeset
59 mkdir ranlib ; \
a99bbbcf743c Fix race condition when building in cruft directory (bug #40901).
Rik <rik@octave.org>
parents: 15277
diff changeset
60 fi
15277
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
61 chmod a+rx mkf77def
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
62 ./mkf77def $(srcdir) $(RANLIB_SRC) > $@-t
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
63 mv $@-t $@
e359158c917f build: Place ranlib build rules in ranlib directory's module.mk.
Rik <rik@octave.org>
parents: 15272
diff changeset
64