annotate octMakefile.in @ 759:3fc1ccd5a9db

[project @ 1994-10-02 15:34:26 by jwe]
author jwe
date Sun, 02 Oct 1994 15:41:13 +0000
parents cce5bd9acc65
children 0acec886a912
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
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
5 # jwe@che.utexas.edu
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
6 # Department of Chemical Engineering
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
7 # The University of Texas at Austin
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
374
e56142acf900 [project @ 1994-02-20 20:23:39 by jwe]
jwe
parents: 364
diff changeset
17 DISTFILES = BUGS COPYING INSTALL INSTALL.OCTAVE Makefile.in \
e56142acf900 [project @ 1994-02-20 20:23:39 by jwe]
jwe
parents: 364
diff changeset
18 Makeconf.in NEWS PROJECTS README README.NLP SENDING-PATCHES \
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 695
diff changeset
19 THANKS f2c-compat.sh flibs.sh cxxlibs.sh configure configure.in \
586
8983371575d8 [project @ 1994-08-07 22:00:20 by jwe]
jwe
parents: 570
diff changeset
20 config.guess config.sub float-type.c move-if-change octave.sh \
570
cc79ed98c391 [project @ 1994-07-27 13:58:53 by jwe]
jwe
parents: 518
diff changeset
21 octave-mode.el install.sh doinstall.sh mkpath.c config.h.in \
cc79ed98c391 [project @ 1994-07-27 13:58:53 by jwe]
jwe
parents: 518
diff changeset
22 acconfig.h MAKEINFO.PATCH ChangeLog ChangeLog.[0-9]
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
23
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
24 # Complete directory trees to distribute.
717
b14a2dda50e7 [project @ 1994-09-21 14:51:52 by jwe]
jwe
parents: 708
diff changeset
25 DISTDIRS = bsd-math kpathsea
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
26
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
27 # Subdirectories to run make in for the primary targets.
695
bcd781d5e148 [project @ 1994-09-10 18:06:37 by jwe]
jwe
parents: 694
diff changeset
28 SUBDIRS = libcruft liboctave @DLD_DIR@ info readline kpathsea src doc scripts
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
29
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
30 # Subdirectories to run `make dist' in
726
cce5bd9acc65 [project @ 1994-09-21 20:31:37 by jwe]
jwe
parents: 717
diff changeset
31 DISTSUBDIRS = $(SUBDIRS) dld test
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 BINDISTFILES = COPYING ChangeLog NEWS README THANKS INSTALL.OCTAVE \
310
6ea1ed2d306c [project @ 1994-01-19 02:44:06 by jwe]
jwe
parents: 297
diff changeset
34 BUGS PROJECTS octave.sh octave-mode.el doinstall.sh \
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
35 mkpath
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
36
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
37 # Subdirectories to run `make dist' in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
38 BINDISTSUBDIRS = doc scripts
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
39
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
40 DIRS_TO_MAKE = $(fcnfiledir) $(octfiledir) $(archlibdir) \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
41 `echo $(localfcnfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $i}'` \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
42 `echo $(localoctfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $i}'`
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
43
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
44 all: mkpath
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
45 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
46 .PHONY: all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
47
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
48 mkpath:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
49 $(CC) $(ALL_CFLAGS) $(srcdir)/mkpath.c -o mkpath
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
50
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
51 libcruft:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
52 cd libcruft ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
53 .PHONY: libcruft
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
54
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
55 liboctave:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
56 cd liboctave ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
57 .PHONY: liboctave
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
58
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
59 kpathsea:
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
60 cd kpathsea ; $(MAKE) all
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
61 .PHONY: kpathsea
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
62
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
63 dld:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
64 cd dld ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
65 .PHONY: dld
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
66
169
49ab724d0a32 [project @ 1993-10-21 21:56:38 by jwe]
jwe
parents: 153
diff changeset
67 info:
49ab724d0a32 [project @ 1993-10-21 21:56:38 by jwe]
jwe
parents: 153
diff changeset
68 cd info ; $(MAKE) all
49ab724d0a32 [project @ 1993-10-21 21:56:38 by jwe]
jwe
parents: 153
diff changeset
69 .PHONY: info
49ab724d0a32 [project @ 1993-10-21 21:56:38 by jwe]
jwe
parents: 153
diff changeset
70
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
71 readline:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
72 cd readline ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
73 .PHONY: readline
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
74
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
75 src:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
76 cd src ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
77 .PHONY: src
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
78
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
79 scripts:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
80 cd scripts ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
81 .PHONY: scripts
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
82
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
83 doc:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
84 cd doc ; $(MAKE) all
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
85 .PHONY: doc
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
86
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
87 check:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
88 cd test; $(MAKE) check
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
89 .PHONY: check
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
90
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
91 octave.info:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
92 cd doc ; $(MAKE) octave.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
93 .PHONY: octave.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
94
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
95 INSTALL.info:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
96 cd doc ; $(MAKE) ../INSTALL.OCTAVE
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
97 .PHONY: INSTALL.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
98
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
99 BUGS.info:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
100 cd doc ; $(MAKE) ../BUGS
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
101 .PHONY: BUGS.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
102
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
103 install:
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
104 for dir in $(DIRS_TO_MAKE) ; do \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
105 if test -d $$dir ; then true ; else ./mkpath $$dir ; fi ; \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 586
diff changeset
106 done
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
107 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
108 .PHONY: install
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
109
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
110 uninstall:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
111 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
112 .PHONY: uninstall
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
113
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
114 tags:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
115 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
116 .PHONY: tags
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
117
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
118 TAGS:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
119 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
120 .PHONY: TAGS
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
121
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
122 clean:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
123 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
124 .PHONY: clean
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
125
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
126 mostlyclean:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
127 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
128 .PHONY: mostlyclean
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
129
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
130 distclean: clean
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
131 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 726
diff changeset
132 rm -f Makefile config.status
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
133 .PHONY: distclean
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
134
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
135 realclean:
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
136 for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 726
diff changeset
137 rm -f Makefile config.status
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
138 .PHONY: realclean
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
139
128
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
140 # Now that things are under RCS control, we need to do the recursive
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
141 # chmod so that the distributed files end up with reasonable modes.
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
142
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
143 # Shared rules for making clean tar files.
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
144
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
145 clean-tar:
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
146 echo octave-$(version) > .fname
128
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
147 tar xf `cat .fname`.tar
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
148 find `cat .fname` \( \( -name RCS -a -type d \) \
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
149 -o -name '*~' -o -name '#*#' \) -print | xargs rm -rf
144
29a6bd3d88a2 [project @ 1993-10-04 03:32:15 by jwe]
jwe
parents: 128
diff changeset
150 chmod -R a+rwX `cat .fname`
128
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
151 tar cf `cat .fname`.tar `cat .fname`
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
152 rm -rf `cat .fname` .fname
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
153 .PHONY: clean-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
154
693
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
155 dist-z:
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
156 echo octave-$(version) > .fname
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
157 gzip --best `cat .fname`.tar
693
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
158 rm -f .fname
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
159 .PHONY: dist-z
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
160
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
161 # Rules for making a source distribution.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
162
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
163 links-for-dist: octave.info INSTALL.info BUGS.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
164 echo octave-$(version) > .fname
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
165 rm -rf `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
166 mkdir `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
167 ln $(DISTFILES) `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
168 for dir in $(DISTDIRS); do ln -s ../$$dir `cat .fname`; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
169 for dir in $(DISTSUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) dist; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
170 .PHONY: links-for-dist
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
171
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
172 dist-tar: links-for-dist
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
173 tar chf `cat .fname`.tar `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
174 rm -rf `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
175 .PHONY: dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
176
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
177 clean-dist-tar: dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
178 $(MAKE) clean-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
179 .PHONY: clean-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
180
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
181 dist: clean-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
182 .PHONY: dist
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
183
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
184 # Rules for making a binary distribution.
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
185
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
186 links-for-bin-dist: octave.info INSTALL.info BUGS.info
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
187 echo octave-$(version) > .fname
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
188 rm -rf `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
189 mkdir `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
190 ln $(BINDISTFILES) `cat .fname`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
191 for dir in $(BINDISTSUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) dist; cd ..; done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
192 .PHONY: links-for-dist
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
193
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
194 bin-dist-tar: links-for-bin-dist
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
195 strip src/octave
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
196 echo octave-$(version) > .fname
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
197 ln src/octave `cat .fname`/octave
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
198 tar chf `cat .fname`.tar `cat .fname`
128
ef32610d62cd [project @ 1993-09-27 06:20:45 by jwe]
jwe
parents: 58
diff changeset
199 rm -rf `cat .fname`
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
200 .PHONY: bin-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
201
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
202 clean-bin-dist-tar: bin-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
203 $(MAKE) clean-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
204 .PHONY: clean-bin-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
205
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
206 binary-dist: clean-bin-dist-tar
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
207 .PHONY: binary-dist
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
208
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
209 # Rules for making a distribution of the docs.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
210
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
211 doc-dist-tar:
153
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
212 echo octave-$(version) > .fname
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
213 echo octave-doc-$(version).tar > .tarfname
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
214 rm -rf `cat .fname`
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
215 mkdir `cat .fname`
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
216 ln README.doc COPYING `cat .fname`
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
217 mkdir `cat .fname`/doc; cd doc; $(MAKE) doc-dist
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
218 tar chf `cat .tarfname` `cat .fname`
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
219 rm -rf `cat .fname`
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
220 .PHONY: doc-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
221
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
222 clean-doc-dist-tar: doc-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
223 $(MAKE) clean-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
224 .PHONY: clean-doc-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
225
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
226 doc-dist: clean-doc-dist-tar
153
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
227 .PHONY: doc-dist
9cde24dc500a [project @ 1993-10-10 19:36:42 by jwe]
jwe
parents: 144
diff changeset
228
692
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
229 # Rules for making a distribution for local use.
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
230
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
231 local-dist-tar: octave.info INSTALL.info BUGS.info
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
232 echo octave-local-$(version) > .fname
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
233 rm -rf `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
234 mkdir `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
235 ln $(DISTFILES) `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
236 for dir in $(DISTDIRS); do ln -s ../$$dir `cat .fname`; done
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
237 for dir in $(DISTSUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
238 tar chf `cat .fname`.tar `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
239 rm -rf `cat .fname`
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
240 .PHONY: local-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
241
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
242 clean-local-dist-tar: local-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
243 $(MAKE) clean-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
244 .PHONY: clean-local-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
245
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
246 local-dist: clean-local-dist-tar
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
247 .PHONY: local-dist
6b0f16bede57 [project @ 1994-09-10 16:45:05 by jwe]
jwe
parents: 666
diff changeset
248
693
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
249 # Rules for splitting a distribution.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
250
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
251 split-dist:
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
252 echo octave-$(version) > .fname
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
253 split -b 1350k `cat .fname`.tar.gz `cat .fname`.tar.gz-
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
254 rm -f .fname
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
255 .PHONY: split-dist
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
256
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
257 split-local-dist:
694
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
258 echo octave-local-$(version) > .fname
01b960f9401e [project @ 1994-09-10 18:01:11 by jwe]
jwe
parents: 693
diff changeset
259 split -b 1350k `cat .fname`.tar.gz `cat .fname`.tar.gz-
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
260 rm -f .fname
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
261 .PHONY: split-local-dist
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
262
693
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
263 # Rules for making a snapshot.
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
264
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
265 snapshot-z: snapshot-version
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
266 $(MAKE) dist
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
267 $(MAKE) dist-z
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
268 .PHONY: snapshot-z
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
269
2622e4cf6cfe [project @ 1994-09-10 16:48:29 by jwe]
jwe
parents: 692
diff changeset
270 snapshot: snapshot-z
426
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
271 .PHONY: snapshot
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
272
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
273 snapshot-version:
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
274 gawk '/static[ \t]+char[ \t]+version_string\[\] [ \t]*=/ { \
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
275 datestring = strftime("%y%m%d", systime()); \
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
276 printf("static char version_string[] = \"ss-%s\";\n", \
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
277 datestring); \
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
278 next; \
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
279 } { print $$0 }' src/version.h > src/version.h.new
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
280 mv src/version.h.new src/version.h
426
a6067610d2dd [project @ 1994-05-23 23:16:05 by jwe]
jwe
parents: 411
diff changeset
281 .PHONY: snapshot-version