comparison octMakefile.in @ 5196:cd5cc2a80589

[project @ 2005-03-09 15:22:58 by jwe]
author jwe
date Wed, 09 Mar 2005 15:25:36 +0000
parents b2322bcf4fba
children 0c85be737139
comparison
equal deleted inserted replaced
5195:5208182e2e62 5196:cd5cc2a80589
47 CONF_DISTSUBDIRS = src 47 CONF_DISTSUBDIRS = src
48 48
49 # Subdirectories in which to run `make dist'. 49 # Subdirectories in which to run `make dist'.
50 DISTSUBDIRS_1 = $(sort $(ALL_SUBDIRS) dlfcn test emacs) 50 DISTSUBDIRS_1 = $(sort $(ALL_SUBDIRS) dlfcn test emacs)
51 DISTSUBDIRS = $(filter-out $(DISTDIRS), $(DISTSUBDIRS_1)) 51 DISTSUBDIRS = $(filter-out $(DISTDIRS), $(DISTSUBDIRS_1))
52
53 XBINDISTFILES = BUGS COPYING INSTALL INSTALL.OCTAVE NEWS NEWS.[0-9] \
54 PROJECTS README README.Linux README.Windows README.MachTen \
55 SENDING-PATCHES THANKS octave-sh install-octave mkinstalldirs \
56 ChangeLog ChangeLog.[0-9]
57
58 BINDISTFILES = $(addprefix $(srcdir)/, $(XBINDISTFILES)) \
59 octave-bug octave-config config.status config.h VERSION ARCH
60
61 # Subdirectories in which to run `make bin-dist'.
62 BINDISTSUBDIRS = libcruft liboctave src scripts doc emacs examples
63 52
64 # Subdirectories in which to run clean targets. 53 # Subdirectories in which to run clean targets.
65 CLEANSUBDIRS = $(DISTSUBDIRS) 54 CLEANSUBDIRS = $(DISTSUBDIRS)
66 55
67 DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir)/octave $(fcnfiledir) \ 56 DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir)/octave $(fcnfiledir) \
225 rm -rf `cat .fname` 214 rm -rf `cat .fname`
226 gzip --best `cat .fname`.tar 215 gzip --best `cat .fname`.tar
227 rm -f .fname 216 rm -f .fname
228 .PHONY: conf-dist 217 .PHONY: conf-dist
229 218
230 # Rules for making a binary distribution.
231
232 VERSION:
233 echo $(version) > VERSION
234 .PHONY: VERSION
235
236 ARCH:
237 echo $(canonical_host_type) > ARCH
238 .PHONY: ARCH
239
240 binary-dist: VERSION ARCH octave-bug octave-config dist-info-files
241 echo octave-$(version)-$(canonical_host_type) > .fname
242 rm -rf `cat .fname`
243 mkdir `cat .fname`
244 ln $(BINDISTFILES) `cat .fname`
245 for dir in $(BINDISTSUBDIRS); do \
246 mkdir `cat .fname`/$$dir; \
247 $(MAKE) -C $$dir bin-dist; \
248 done
249 tar chf `cat .fname`.tar `cat .fname`
250 rm -rf `cat .fname`
251 tar xf `cat .fname`.tar
252 find `cat .fname` \( \( -name RCS -a -type d \) \
253 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \
254 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name Makefile \
255 -o -name c-auto.h \) -print | xargs rm -rf
256 rm -f `cat .fname`/test/octave.test/*.m
257 chmod -R a+rw `cat .fname`
258 find `cat .fname` \( -perm 766 -o -perm 676 -o -perm 667 \
259 -o -perm 776 -o -perm 677 -o -perm 767 \) -print | \
260 xargs chmod a+x scripts
261 strip src/octave
262 tar cf `cat .fname`.tar `cat .fname`
263 rm -rf `cat .fname`
264 gzip --best `cat .fname`.tar
265 rm -f .fname
266 .PHONY: binary-dist
267
268 .NOTPARALLEL: 219 .NOTPARALLEL: