1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#
# Make file for bib_gen installation.
#
# To do the installation, set PREFIX to contain the directory hierarchy
# you want to install it in, and type "make install". If you want to
# leave it where it is, just type "make install.here".
#
PERL = perl
PREFIX = /usr/local
#
# Don't change anything below this line:
#
BIN_FILES = bin/matwrap
S=share/matwrap
SHARE_FILES = $S/wrap_matlab.pl $S/wrap_octave.pl $S/wrap_tela.pl \
$S/matwrap.pod \
$S/mkoctfile_2_0_8_or_9.patch \
$S/mkoctfile_before_2_0_8.patch
P=share/matwrap/Examples/pgplot
A=share/matwrap/Examples/single_axon
T=share/matwrap/Examples/simple
EXAMPLE_FILES = share/matwrap/Examples/mex_cpp.sh \
$P/Makefile $P/README $P/cpgplot.h $P/pgdemo4_for_matlab.m \
$P/pgdemo4_for_octave.m $P/pgdemo4_for_tela.t \
$A/Makefile $A/README $A/array.h $A/demo_for_matlab.m \
$A/demo_for_octave.m $A/demo_for_tela.t $A/hodgkin_huxley.cxx \
$A/hodgkin_huxley.h $A/misc.h $A/single_axon.cxx $A/single_axon.h \
$T/simple.h $T/README $T/Makefile $T/demo.m $T/demo.t
EXTRA_FILES = README INSTALL install.pl Makefile ChangeLog TODO
install::
perl install.pl -prefix $(PREFIX) $(BIN_FILES) $(SHARE_FILES) $(EXAMPLE_FILES)
install.here::
perl install.pl -prefix . $(BIN_FILES) $(SHARE_FILES) $(EXAMPLE_FILES)
matwrap.tar: $(EXTRA_FILES) $(BIN_FILES) $(SHARE_FILES) $(EXAMPLE_FILES)
tar cf matwrap.tar
matwrap.tar.gz: $(EXTRA_FILES) $(BIN_FILES) $(SHARE_FILES) $(EXAMPLE_FILES)
cd ..; tar --create --gzip --file $@ `echo " $^" | sed 's@ @ matwrap/@g'`
|