annotate octMakefile.in @ 3649:3a067b216fd6

[project @ 2000-03-31 06:02:44 by jwe]
author jwe
date Fri, 31 Mar 2000 06:02:45 +0000
parents 3074e565689c
children e68976912bb5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
1 #
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
2 # Makefile for octave
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
3 #
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
4 # John W. Eaton
1451
05f0c06471c9 [project @ 1995-09-20 04:01:39 by jwe]
jwe
parents: 1392
diff changeset
5 # jwe@bevo.che.wisc.edu
05f0c06471c9 [project @ 1995-09-20 04:01:39 by jwe]
jwe
parents: 1392
diff changeset
6 # University of Wisconsin-Madison
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
7 # Department of Chemical Engineering
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
8
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
9 TOPDIR = .
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
10
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
11 srcdir = @srcdir@
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 374
diff changeset
12 top_srcdir = @top_srcdir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
13 VPATH = @srcdir@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
14
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 374
diff changeset
15 include $(TOPDIR)/Makeconf
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
16
989
afb9c5c14ed3 [project @ 1994-12-15 04:03:35 by jwe]
jwe
parents: 988
diff changeset
17 INSTALL = @INSTALL@
afb9c5c14ed3 [project @ 1994-12-15 04:03:35 by jwe]
jwe
parents: 988
diff changeset
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
2642
042f5cbdb2a8 [project @ 1997-01-29 06:28:56 by jwe]
jwe
parents: 2635
diff changeset
19 INSTALL_SCRIPT = @INSTALL_SCRIPT@
989
afb9c5c14ed3 [project @ 1994-12-15 04:03:35 by jwe]
jwe
parents: 988
diff changeset
20 INSTALL_DATA = @INSTALL_DATA@
afb9c5c14ed3 [project @ 1994-12-15 04:03:35 by jwe]
jwe
parents: 988
diff changeset
21
2682
b2e3cceb63ad [project @ 1997-02-14 20:31:02 by jwe]
jwe
parents: 2662
diff changeset
22 CONF_DISTFILES = Makefile Makefile.in octMakefile.in Makeconf.in configure \
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1893
diff changeset
23 configure.in config.guess config.sub aclocal.m4 config.h.in \
1897
b38c10272c3b [project @ 1996-02-08 17:34:29 by jwe]
jwe
parents: 1896
diff changeset
24 acconfig.h config.h.bot install-sh
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1893
diff changeset
25
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1893
diff changeset
26 DISTFILES = $(CONF_DISTFILES) \
3261
49bec5dee616 [project @ 1999-08-19 21:13:18 by jwe]
jwe
parents: 3176
diff changeset
27 BUGS COPYING FLEX.patch INSTALL INSTALL.OCTAVE NEWS NEWS.[0-9] \
49bec5dee616 [project @ 1999-08-19 21:13:18 by jwe]
jwe
parents: 3176
diff changeset
28 PROJECTS README README.Linux README.Windows README.MachTen ROADMAP \
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3160
diff changeset
29 SENDING-PATCHES THANKS move-if-change octave-sh octave-bug.in \
3160
4696773a14b1 [project @ 1998-03-02 06:18:12 by jwe]
jwe
parents: 3158
diff changeset
30 install-octave.in mkinstalldirs mkoctfile.in texi2dvi \
3044
8ec2d00e20e5 [project @ 1997-06-06 21:53:38 by jwe]
jwe
parents: 3029
diff changeset
31 ChangeLog ChangeLog.[0-9]
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
32
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
33 # Complete directory trees to distribute.
3071
00ef82060ebc [project @ 1997-07-11 01:25:42 by jwe]
jwe
parents: 3069
diff changeset
34 DISTDIRS = glob kpathsea readline # plplot
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
35
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1124
diff changeset
36 # Subdirectories in which to run `make all'.
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3154
diff changeset
37 SUBDIRS = @PLPLOT_DIR@ @READLINE_DIR@ @DLFCN_DIR@ @GLOB_DIR@ \
3646
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
38 kpathsea libcruft liboctave scripts doc examples
1680
a3e4d62de24c [project @ 1995-12-30 03:37:08 by jwe]
jwe
parents: 1524
diff changeset
39
3646
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
40 ALL_SUBDIRS = $(SUBDIRS) src
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
41
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
42 # Subdirectories in which to run `make all'.
3154
352a80c32765 [project @ 1998-02-14 19:17:59 by jwe]
jwe
parents: 3151
diff changeset
43 INSTALL_SUBDIRS = libcruft liboctave src scripts doc examples
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
44
2394
c96aa059938b [project @ 1996-10-12 22:51:23 by jwe]
jwe
parents: 2279
diff changeset
45 # Subdirectories in which to run `make conf-dist'.
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1893
diff changeset
46 CONF_DISTSUBDIRS = src
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1893
diff changeset
47
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1124
diff changeset
48 # Subdirectories in which to run `make dist'.
3077
bb05bfa835c9 [project @ 1997-08-03 20:36:49 by jwe]
jwe
parents: 3071
diff changeset
49 DISTSUBDIRS = libcruft liboctave dlfcn src scripts \
2635
28e91d118bfa [project @ 1997-01-27 22:20:32 by jwe]
jwe
parents: 2629
diff changeset
50 test doc emacs examples
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
51
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
52 XBINDISTFILES = BUGS COPYING INSTALL INSTALL.OCTAVE NEWS NEWS.[0-9] \
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3160
diff changeset
53 PROJECTS README README.Linux README.Windows README.MachTen \
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
54 SENDING-PATCHES THANKS octave-sh install-octave mkinstalldirs \
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
55 ChangeLog ChangeLog.[0-9]
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
56
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
57 BINDISTFILES = $(addprefix $(srcdir)/, $(XBINDISTFILES)) \
2682
b2e3cceb63ad [project @ 1997-02-14 20:31:02 by jwe]
jwe
parents: 2662
diff changeset
58 octave-bug config.status config.h VERSION ARCH
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
59
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
60 # Subdirectories in which to run `make bin-dist'.
3077
bb05bfa835c9 [project @ 1997-08-03 20:36:49 by jwe]
jwe
parents: 3071
diff changeset
61 BINDISTSUBDIRS = libcruft liboctave src scripts doc emacs examples
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
62
2394
c96aa059938b [project @ 1996-10-12 22:51:23 by jwe]
jwe
parents: 2279
diff changeset
63 # Subdirectories in which to run clean targets.
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3154
diff changeset
64 CLEANSUBDIRS = $(DISTSUBDIRS) @READLINE_DIR@ @GLOB_DIR@ kpathsea
2394
c96aa059938b [project @ 1996-10-12 22:51:23 by jwe]
jwe
parents: 2279
diff changeset
65
2224
6da8b05dc6a8 [project @ 1996-05-17 08:37:57 by jwe]
jwe
parents: 2221
diff changeset
66 DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir) $(fcnfiledir) \
2439
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2405
diff changeset
67 $(octfiledir) $(archlibdir) $(localarchlibdir) \
3649
3a067b216fd6 [project @ 2000-03-31 06:02:44 by jwe]
jwe
parents: 3648
diff changeset
68 `echo $(localfcnfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $$i}'` \
3a067b216fd6 [project @ 2000-03-31 06:02:44 by jwe]
jwe
parents: 3648
diff changeset
69 `echo $(localoctfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $$i}'`
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
70
3646
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
71 all: octave-bug mkoctfile src
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
72 .PHONY: all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
73
3646
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
74 src: $(SUBDIRS)
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
75 $(MAKE) -C $@ all
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
76 .PHONY: src
e85efffe12a5 [project @ 2000-03-25 07:18:55 by jwe]
jwe
parents: 3601
diff changeset
77
2221
b9b575b75d81 [project @ 1996-05-17 07:53:49 by jwe]
jwe
parents: 2219
diff changeset
78 octave-bug: octave-bug.in Makeconf octMakefile
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2135
diff changeset
79 @$(do-subst-config-vals)
2454
8d5c4ec28e19 [project @ 1996-11-01 07:43:54 by jwe]
jwe
parents: 2452
diff changeset
80 chmod a+rx $@
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2135
diff changeset
81
2221
b9b575b75d81 [project @ 1996-05-17 07:53:49 by jwe]
jwe
parents: 2219
diff changeset
82 mkoctfile: mkoctfile.in Makeconf octMakefile
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2135
diff changeset
83 @$(do-subst-config-vals)
2454
8d5c4ec28e19 [project @ 1996-11-01 07:43:54 by jwe]
jwe
parents: 2452
diff changeset
84 chmod a+rx $@
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 759
diff changeset
85
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1124
diff changeset
86 $(SUBDIRS):
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
87 $(MAKE) -C $@ all
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1124
diff changeset
88 .PHONY: $(SUBDIRS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
89
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
90 check:
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
91 $(MAKE) -C test check
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
92 .PHONY: check
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
93
2405
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2395
diff changeset
94 kpathsea.info:
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
95 $(MAKE) -C kpathsea kpathsea.info
2405
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2395
diff changeset
96 .PHONY: kpathsea.info
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2395
diff changeset
97
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
98 octave.info:
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
99 $(MAKE) -C doc/interpreter octave.info
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
100 .PHONY: octave.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
101
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
102 BUGS INSTALL.OCTAVE:
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
103 $(MAKE) -C doc ../$@
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
104 .PHONY: BUGS INSTALL.OCTAVE
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
105
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2782
diff changeset
106 install install-strip ::
810
1865b6725111 [project @ 1994-10-14 18:43:46 by jwe]
jwe
parents: 803
diff changeset
107 $(top_srcdir)/mkinstalldirs $(DIRS_TO_MAKE)
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
108 rm -f $(bindir)/octave-bug
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2812
diff changeset
109 $(INSTALL_SCRIPT) octave-bug $(bindir)/octave-bug-$(version)
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3004
diff changeset
110 cd $(bindir); $(LN_S) octave-bug-$(version) octave-bug
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
111 rm -f $(bindir)/mkoctfile
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2812
diff changeset
112 $(INSTALL_SCRIPT) mkoctfile $(bindir)/mkoctfile-$(version)
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3004
diff changeset
113 cd $(bindir); $(LN_S) mkoctfile-$(version) mkoctfile
2279
08cfa39a0bb4 [project @ 1996-05-24 07:51:25 by jwe]
jwe
parents: 2226
diff changeset
114 $(INSTALL_DATA) config.h $(octincludedir)/config.h
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
115 $(mk-includedir-link)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
116
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1323
diff changeset
117 maintainer-clean::
1392
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
118 @echo ""
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
119 @echo "************************************************************"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
120 @echo "* *"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
121 @echo "* This command is intended for maintainers to use; it *"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
122 @echo "* deletes files that may require special tools to rebuild. *"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
123 @echo "* *"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
124 @echo "************************************************************"
ea60a2678dec [project @ 1995-09-14 09:13:33 by jwe]
jwe
parents: 1391
diff changeset
125 @echo ""
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1323
diff changeset
126
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2782
diff changeset
127 install install-strip uninstall tags TAGS::
3004
9a54159563de [project @ 1997-05-23 05:00:49 by jwe]
jwe
parents: 2993
diff changeset
128 $(foreach d, $(INSTALL_SUBDIRS), $(do-subdir-for-command))
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2782
diff changeset
129 .PHONY: install install-strip uninstall tags
2046
18847f7caa8a [project @ 1996-03-29 19:43:07 by jwe]
jwe
parents: 2045
diff changeset
130
18847f7caa8a [project @ 1996-03-29 19:43:07 by jwe]
jwe
parents: 2045
diff changeset
131 clean mostlyclean distclean maintainer-clean::
2394
c96aa059938b [project @ 1996-10-12 22:51:23 by jwe]
jwe
parents: 2279
diff changeset
132 $(foreach d, $(CLEANSUBDIRS), $(do-subdir-for-command))
2046
18847f7caa8a [project @ 1996-03-29 19:43:07 by jwe]
jwe
parents: 2045
diff changeset
133 .PHONY: clean mostlyclean distclean maintainer-clean
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
134
3287
076954abbe19 [project @ 1999-10-13 23:56:00 by jwe]
jwe
parents: 3261
diff changeset
135 maintainer-clean distclean::
3601
b1830ce6993a [project @ 2000-02-24 05:07:15 by jwe]
jwe
parents: 3297
diff changeset
136 rm -f octMakefile octave-bug Makeconf config.cache \
2812
1de53df388ff [project @ 1997-03-13 17:48:25 by jwe]
jwe
parents: 2811
diff changeset
137 config.h config.log config.status Makerules.f77 mk-oct-links \
1de53df388ff [project @ 1997-03-13 17:48:25 by jwe]
jwe
parents: 2811
diff changeset
138 mkoctfile Makefrag.f77
1de53df388ff [project @ 1997-03-13 17:48:25 by jwe]
jwe
parents: 2811
diff changeset
139
3287
076954abbe19 [project @ 1999-10-13 23:56:00 by jwe]
jwe
parents: 3261
diff changeset
140 maintainer-clean::
076954abbe19 [project @ 1999-10-13 23:56:00 by jwe]
jwe
parents: 3261
diff changeset
141 rm -f configure config.h.in BUGS INSTALL.OCTAVE install-octave
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
142
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
143 # Rules for making a source distribution.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
144
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
145 dist-info-files: INSTALL.OCTAVE BUGS
2405
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2395
diff changeset
146 .PHONY: dist-info-files
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2395
diff changeset
147
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
148 dist: dist-info-files
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
149 echo octave-$(version) > .fname
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
150 rm -rf `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
151 mkdir `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
152 ln $(DISTFILES) `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
153 for dir in $(DISTDIRS); do ln -s ../$$dir `cat .fname`; done
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
154 for dir in $(DISTSUBDIRS); do \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3004
diff changeset
155 mkdir `cat .fname`/$$dir; \
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
156 $(MAKE) -C $$dir dist; \
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
157 done
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
158 tar chf `cat .fname`.tar `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
159 rm -rf `cat .fname`
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
160 tar xf `cat .fname`.tar
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
161 find `cat .fname` \( \( -name RCS -a -type d \) \
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2749
diff changeset
162 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2749
diff changeset
163 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name config.log \
3151
8901c1183179 [project @ 1998-02-07 17:26:06 by jwe]
jwe
parents: 3149
diff changeset
164 -o -name config.status -o -name config.cache -o -name stamp-h \
3601
b1830ce6993a [project @ 2000-02-24 05:07:15 by jwe]
jwe
parents: 3297
diff changeset
165 -o -name klibtool.config -o -name stamp-auto \
b1830ce6993a [project @ 2000-02-24 05:07:15 by jwe]
jwe
parents: 3297
diff changeset
166 -o -name c-auto.h \) -print | xargs rm -rf
3158
1ba600db299e [project @ 1998-02-22 10:05:39 by jwe]
jwe
parents: 3156
diff changeset
167 find `cat .fname`/readline `cat .fname`/kpathsea `cat .fname`/glob \
1ba600db299e [project @ 1998-02-22 10:05:39 by jwe]
jwe
parents: 3156
diff changeset
168 -name Makefile | xargs rm -f
3151
8901c1183179 [project @ 1998-02-07 17:26:06 by jwe]
jwe
parents: 3149
diff changeset
169 find `cat .fname`/readline `cat .fname`/info `cat .fname`/glob \
8901c1183179 [project @ 1998-02-07 17:26:06 by jwe]
jwe
parents: 3149
diff changeset
170 -name config.h | xargs rm -f
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
171 rm -f `cat .fname`/test/octave.test/*.m
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
172 chmod -R a+rwX `cat .fname`
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
173 tar cf `cat .fname`.tar `cat .fname`
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
174 rm -rf `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
175 gzip --best `cat .fname`.tar
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
176 rm -f .fname
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
177 .PHONY: dist
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
178
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
179 # Rules for making a snapshot.
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
180
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
181 snapshot-version:
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
182 @echo "creating src/version.h"
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
183 @gawk '/#define OCTAVE_VERSION[ \t]*/ { \
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
184 datestring = strftime("%y%m%d", systime()); \
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
185 printf("#define OCTAVE_VERSION \"ss-%s\"\n", datestring); \
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
186 next; \
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
187 } { print $$0 }' src/version.h > src/version.h.new
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
188 @$(top_srcdir)/move-if-change src/version.h.new src/version.h
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
189 .PHONY: snapshot-version
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
190
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
191 snapshot: snapshot-version
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
192 $(MAKE) dist
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
193 .PHONY: snapshot
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
194
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
195 # Rules for making a dist of just the stuff needed to run configure.
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
196
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
197 conf-dist:
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
198 echo config-dist-$(version) > .fname
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
199 rm -rf `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
200 mkdir `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
201 ln $(CONF_DISTFILES) `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
202 for dir in $(CONF_DISTSUBDIRS); do \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3004
diff changeset
203 mkdir `cat .fname`/$$dir; \
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
204 $(MAKE) -C $$dir conf-dist; \
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
205 done
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
206 tar chf `cat .fname`.tar `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
207 rm -rf `cat .fname`
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
208 gzip --best `cat .fname`.tar
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
209 rm -f .fname
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
210 .PHONY: conf-dist
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
211
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
212 # Rules for making a binary distribution.
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
213
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
214 VERSION:
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
215 echo $(version) > VERSION
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
216 .PHONY: VERSION
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
217
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
218 ARCH:
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3107
diff changeset
219 echo $(canonical_host_type) > ARCH
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
220 .PHONY: ARCH
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
221
2682
b2e3cceb63ad [project @ 1997-02-14 20:31:02 by jwe]
jwe
parents: 2662
diff changeset
222 binary-dist: VERSION ARCH octave-bug dist-info-files
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3107
diff changeset
223 echo octave-$(version)-$(canonical_host_type) > .fname
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
224 rm -rf `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
225 mkdir `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
226 ln $(BINDISTFILES) `cat .fname`
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
227 for dir in $(BINDISTSUBDIRS); do \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3004
diff changeset
228 mkdir `cat .fname`/$$dir; \
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3287
diff changeset
229 $(MAKE) -C $$dir bin-dist; \
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
230 done
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
231 tar chf `cat .fname`.tar `cat .fname`
128
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
232 rm -rf `cat .fname`
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
233 tar xf `cat .fname`.tar
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
234 find `cat .fname` \( \( -name RCS -a -type d \) \
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2749
diff changeset
235 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2749
diff changeset
236 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name Makefile \
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
237 -o -name c-auto.h \) -print | xargs rm -rf
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
238 rm -f `cat .fname`/test/octave.test/*.m
2662
be083921a2d4 [project @ 1997-02-04 20:11:41 by jwe]
jwe
parents: 2642
diff changeset
239 chmod -R a+rw `cat .fname`
be083921a2d4 [project @ 1997-02-04 20:11:41 by jwe]
jwe
parents: 2642
diff changeset
240 find `cat .fname` \( -perm 766 -o -perm 676 -o -perm 667 \
2685
d347f197753f [project @ 1997-02-14 22:10:33 by jwe]
jwe
parents: 2684
diff changeset
241 -o -perm 776 -o -perm 677 -o -perm 767 \) -print | \
d347f197753f [project @ 1997-02-14 22:10:33 by jwe]
jwe
parents: 2684
diff changeset
242 xargs chmod a+x scripts
3077
bb05bfa835c9 [project @ 1997-08-03 20:36:49 by jwe]
jwe
parents: 3071
diff changeset
243 strip src/octave
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2593
diff changeset
244 tar cf `cat .fname`.tar `cat .fname`
1896
e735a45762a0 [project @ 1996-02-08 17:10:07 by jwe]
jwe
parents: 1895
diff changeset
245 rm -rf `cat .fname`
e735a45762a0 [project @ 1996-02-08 17:10:07 by jwe]
jwe
parents: 1895
diff changeset
246 gzip --best `cat .fname`.tar
e735a45762a0 [project @ 1996-02-08 17:10:07 by jwe]
jwe
parents: 1895
diff changeset
247 rm -f .fname
2629
20704e7e5e79 [project @ 1997-01-27 06:11:52 by jwe]
jwe
parents: 2626
diff changeset
248 .PHONY: binary-dist
3648
3074e565689c [project @ 2000-03-25 07:52:06 by jwe]
jwe
parents: 3647
diff changeset
249
3074e565689c [project @ 2000-03-25 07:52:06 by jwe]
jwe
parents: 3647
diff changeset
250 .NOTPARALLEL: