home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
octa21eb.zip
/
octave
/
PATOS2.ZIP
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1999-05-13
|
9KB
|
189 lines
# Makefile for Octave 2.09 for OS/2
# (c) Klaus Gebhardt, 1994 - 1995
TOPDIR = .
HOME = /
PAT = PATOS2.ZIP
DLF = DLFCN.ZIP
SCR = SCRIPTS.ZIP
include $(TOPDIR)/makeconf.os2
all:
cd doc & $(MAKE)
cd libcruft & $(MAKE)
cd liboctave & $(MAKE)
cd src & $(MAKE)
$(MAKE) script-files
install:
rm -f $(INSDIR)/doc/* $(INSDIR)/lisp/*
rm -f $(INSDIR)/dlfcn/examples/* $(INSDIR)/dlfcn/lib/*
rm -f $(INSDIR)/dlfcn/octave/*
rm -f $(INSDIR)/dll/octave?.dll $(INSDIR)/dll/cruft?.dll
rm -f $(INSDIR)/*.exe $(INSDIR)/*.cmd
rm -rf $(INSDIR)/scripts
cp doc/faq/oct-faq doc/faq/*.dvi doc/faq/*.ps $(INSDIR)/doc
cp doc/faq/*.INF $(INSDIR)/doc
cp doc/refcard/*.dvi doc/refcard/*.ps $(INSDIR)/doc
cp doc/interpreter/*.dvi doc/interpreter/*.ps $(INSDIR)/doc
cp doc/interpreter/*.1 doc/interpreter/octave $(INSDIR)/doc
cp doc/interpreter/octave.i0? doc/interpreter/octave.i1? $(INSDIR)/doc
cp doc/interpreter/*.INF $(INSDIR)/doc
cp doc/liboctave/*.dvi doc/liboctave/*.ps $(INSDIR)/doc
cp doc/liboctave/liboct doc/liboctave/liboct.i0? $(INSDIR)/doc
cp doc/liboctave/*.inf $(INSDIR)/doc
cp dlfcn/examples/* $(INSDIR)/dlfcn/examples
cp dlfcn/lib/* $(INSDIR)/dlfcn/lib
cp dlfcn/octave/* $(INSDIR)/dlfcn/octave
cp lisp/*.el $(INSDIR)/lisp
cp lisp/*.elc $(INSDIR)/lisp
cp dll/*.dll $(INSDIR)/dll
cp octave.exe oct-view.exe inst-octave.cmd make-octfile.cmd $(INSDIR)
cp -r scripts $(INSDIR)
script-files: dlfcn-files
rm -f $(SCR)
cd scripts\image\codecs & for %p in (*.cc) do @..\\..\\..\\make-octfile %p /d $(MSTDIR)
cd scripts.fat\image\codecs & for %p in (*.cc) do @..\\..\\..\\make-octfile %p /d $(MSTDIR)
zip -r9 $(SCR) scripts scripts.fat
unzip -t $(SCR)
dlfcn-files:
rm -f dlfcn/octave/*.h dlfcn/lib/*.lib $(DLF)
cp libcruft/cruft?.lib dlfcn/lib
cp liboctave/octave2.lib src/octave1.lib dlfcn/lib
cp ../lib/dlfcn.lib ../lib/f2cdll.lib ../lib/gnuinfo.lib dlfcn/lib
cp ../lib/gnuinfo.lib ../lib/kpathsea.lib ../lib/xmalloc.lib dlfcn/lib
cp ../lib/readline.lib dlfcn/lib
cp $(EMX09CDIR)/lib/gpp2.lib $(EMX09CDIR)/lib/stdcpp2.lib dlfcn/lib
cp liboctave/*.h liboctave/mx-inlines.cc src/*.h dlfcn/octave
cp config.emx dlfcn/octave/config.h
cd ..\pnm & make OVER=beta octave
cd dlfcn\examples & for %p in (*.cc) do @..\\..\\make-octfile %p /d $(MSTDIR)
zip -r9 $(DLF) dlfcn
unzip -t $(DLF)
patches:
rm -f PATCHES.OS2 $(PAT)
-diff -cwr $(ORIGDIR)/liboctave $(MSTDIR)/liboctave | sed -f patches.sed >PATCHES.OS2
-diff -cwr $(ORIGDIR)/libcruft $(MSTDIR)/libcruft | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/src $(MSTDIR)/src | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/scripts $(MSTDIR)/scripts | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/doc $(MSTDIR)/doc | sed -f patches.sed >>PATCHES.OS2
zip -r9 $(PAT) libcruft/*.os2 libcruft/*.def libcruft/misc/gen-d1mach.c
zip -r9 $(PAT) liboctave/*.os2
zip -r9 $(PAT) scripts.fat/*.fat scripts.fat/*.sed scripts.fat/*.cmd
zip -r9 $(PAT) doc/*.os2 src/*.os2 src/octave.def *.os2 *.emx *.sed *.cmd *.ico
zip -r9 $(PAT) src/DLD-FUNCTIONS/*.os2 src/OPERATORS/*.os2 src/TEMPLATE-INST/*.os2
unzip -t $(PAT)
clean:
cd liboctave & $(MAKE) clean
cd libcruft & $(MAKE) clean
cd src & $(MAKE) clean
rm -f *.exe *.zip dll/*.dll
dist: binary-dist source-dist
binary-dist:
deltree /Q /Y ..\\..\\Distribution\\octave
rm -f ../../Distribution/octave-$(OCTBETAVER)-b$(OCTBETABUILD).zip
md ..\\..\\Distribution\\octave
md ..\\..\\Distribution\\octave\\dll
md ..\\..\\Distribution\\octave\\doc
md ..\\..\\Distribution\\octave\\etc
md ..\\..\\Distribution\\octave\\lisp
cp $(ORIGDIR)/BUGS $(ORIGDIR)/ChangeLog.* ../../Distribution/octave
cp $(ORIGDIR)/COPYING $(ORIGDIR)/NEWS.* ../../Distribution/octave
cp $(ORIGDIR)/PROJECTS $(ORIGDIR)/README ../../Distribution/octave
cp $(ORIGDIR)/ROADMAP $(ORIGDIR)/THANKS ../../Distribution/octave
cp $(ORIGDIR)/SENDING-PATCHES ../../Distribution/octave/SENDING.PAT
cp $(EMXDIR)/doc/COPYING.EMX ../../Distribution/octave
cp $(EMXDIR)/dll/emx.dll $(EMXDIR)/dll/emxlibcs.dll ../../Distribution/octave/dll
cp $(EMXDIR)/etc/termcap.* ../../Distribution/octave/etc
cp ../texinfo-$(TEXIVER)/info/*.dll ../../Distribution/octave/dll
cp ../texinfo-$(TEXIVER)/view/gnuview.exe ../../Distribution/octave
cp ../texinfo-$(TEXIVER)/info/info.exe ../../Distribution/octave
cp ../texinfo-$(TEXIVER)/info/info.ico ../../Distribution/octave
cp ../f2c/f2c.dll ../../Distribution/octave/dll
cp ../stdcpp/emx-0.9c/*.dll ../../Distribution/octave/dll
cp ../kpathsea/*.dll ../../Distribution/octave/dll
cp ../readline/*.dll ../../Distribution/octave/dll
cp ../mkfifo/mkfifo.exe ../../Distribution/octave
cp ../mkfifo/nmpserv.exe ../../Distribution/octave
cp Changes.OS2 README.OS2 ../../Distribution/octave
cp DLFCN.ZIP PATOS2.ZIP SCRIPTS.ZIP ../../Distribution/octave
cp dll/*.dll ../../Distribution/octave/dll
cp doc/dir ../../Distribution/octave/doc
cp doc/faq/oct-faq doc/faq/*.dvi doc/faq/*.ps ../../Distribution/octave/doc
cp doc/faq/*.INF ../../Distribution/octave/doc
cp doc/refcard/*.dvi doc/refcard/*.ps ../../Distribution/octave/doc
cp doc/interpreter/*.dvi doc/interpreter/*.ps ../../Distribution/octave/doc
cp doc/interpreter/*.1 doc/interpreter/octave ../../Distribution/octave/doc
cp doc/interpreter/octave.i0? ../../Distribution/octave/doc
cp doc/interpreter/octave.i1? ../../Distribution/octave/doc
cp doc/interpreter/*.INF ../../Distribution/octave/doc
cp doc/liboctave/*.dvi doc/liboctave/*.ps ../../Distribution/octave/doc
cp doc/liboctave/liboct doc/liboctave/liboct.i0? ../../Distribution/octave/doc
cp doc/liboctave/*.inf ../../Distribution/octave/doc
cp lisp/* ../../Distribution/octave/lisp
cp inst-octave.cmd make-octfile.cmd ../../Distribution/octave
cp oct-view.exe octave.exe octave.ico ../../Distribution/octave
cp h:/bin/unzip.exe ../../Distribution/octave
cd ..\\..\\Distribution & zip -r9 octave-$(OCTBETAVER)-b$(OCTBETABUILD).zip octave
cd ..\\..\\Distribution & unzip -t octave-$(OCTBETAVER)-b$(OCTBETABUILD).zip
deltree /Q /Y ..\\..\\Distribution\\octave
source-dist:
deltree /Q /Y ..\\..\\Distribution\\octave
rm -f ../../Distribution/octave-$(OCTBETAVER)-s$(OCTBETABUILD).zip
md ..\\..\\Distribution\\octave
cp $(ORIGDIR)/BUGS $(ORIGDIR)/ChangeLog.* ../../Distribution/octave
cp $(ORIGDIR)/COPYING $(ORIGDIR)/NEWS.* ../../Distribution/octave
cp $(ORIGDIR)/PROJECTS $(ORIGDIR)/README ../../Distribution/octave
cp $(ORIGDIR)/ROADMAP $(ORIGDIR)/THANKS ../../Distribution/octave
cp $(ORIGDIR)/SENDING-PATCHES ../../Distribution/octave/SENDING.PAT
cp ../makerules ../makeversions ../makefile ../../Distribution/octave
cp -r ../dlfcn ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\dlfcn & make clean
cd ..\\..\\Distribution\\octave\\dlfcn\\test & make clean
cp -r ../f2c ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\f2c & make clean
cp -r ../texinfo-$(TEXIVER) ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\texinfo-$(TEXIVER) & make -f makefile.os2 clean
cp -r ../kpathsea ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\kpathsea & make clean
cp -r ../mkfifo ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\mkfifo & make clean
cp -r ../octave-$(OCTBETAVER) ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\octave-$(OCTBETAVER) & make -f makefile.os2 clean
cd ..\\..\\Distribution\\octave\\octave-$(OCTBETAVER)\\doc & make -f makefile.os2 clean
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/dlfcn/examples/*.oct
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/dlfcn/lib/*
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/dlfcn/octave/*
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/lisp/*.elc
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts/image/codecs/*.oct
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts/image/Blume.BMP
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts/image/Jupiter.PNM
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts.fat/image/codecs/*.oct
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts.fat/image/Blume.BMP
rm -f ../../Distribution/octave/octave-$(OCTBETAVER)/scripts.fat/image/Jupiter.PNM
cp -r ../pnm ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\pnm & make clean
rm -f ../../Distribution/octave/pnm/Blume.BMP
rm -f ../../Distribution/octave/pnm/Jupiter.PNM
cp -r ../readline ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\readline & make clean
cd ..\\..\\Distribution\\octave\\readline\\doc & make clean
rm -f ../../Distribution/octave/readline/examples/*.o
rm -f ../../Distribution/octave/readline/examples/*.exe
cp -r ../stdcpp ../../Distribution/octave
cd ..\\..\\Distribution\\octave\\stdcpp\\emx-0.9c & make clean
cd ..\\..\\Distribution\\octave\\stdcpp\\emx-0.9d & make clean
cd ..\\..\\Distribution\\octave\\stdcpp\\test & make clean
cd ..\\..\\Distribution & zip -r9 octave-$(OCTBETAVER)-s$(OCTBETABUILD).zip octave
cd ..\\..\\Distribution & unzip -t octave-$(OCTBETAVER)-s$(OCTBETABUILD).zip
deltree /Q /Y ..\\..\\Distribution\\octave