root/trunk/Makefile.am

Revision 37, 2.6 kB (checked in by apdavison, 1 year ago)

Synchronized trunk with http://www.neuron.yale.edu/svn/neuron/nrn/trunk revision 1964

  • Property svn:executable set to
Line 
1 ## This is the top level Makefile.am.
2 #AUTOMAKE_OPTIONS = foreign dist-zip dist-tarZ
3 AUTOMAKE_OPTIONS = foreign dist-zip
4 ACLOCAL_AMFLAGS = -I m4
5
6 host_cpu = @host_cpu@
7
8 if NMODL_ONLY
9 SUBDIRS = src
10 else
11 SUBDIRS = src bin share
12 endif
13 #
14 # Install libtool; it's needed to compile the "special" program.
15 #
16 pkgdata_SCRIPTS = libtool
17
18 ## Unfortunately nrnconf.h is architecture dependent so the standard
19 ## installation of it does not allow multiarchitectures,
20 ## i.e the following is wrong.
21 ## pkginclude_HEADERS = nrnconf.h
22 ## So we do it as data
23 libobjdir = $(libdir)
24 libobj_DATA = nrnconf.h
25
26 CONFIGURE_DEPENDENCIES = m4/acx_mpi.m4 m4/ivcheck.m4 m4/java_support.m4 \
27         m4/nrnjava.m4 m4/nrnpython.m4 m4/nrnrt.m4 \
28         m4/oddities.m4 m4/parcon.m4 m4/readline.m4 \
29         m4/withmpi.m4
30
31 EXTRA_DIST = $(CONFIGURE_DEPENDENCIES) installunix.html build.sh \
32         nrnversion.sh mysvnversion.sh
33
34 if BUILD_CYGWIN
35 #install from the build directories to the mswin destination
36 #uses the classical positions of files
37 mswin:
38         top_srcdir=$(top_srcdir) marshall_dir=$(marshall_dir) \
39         top_builddir=$(top_builddir) \
40         ivbindir=$(IV_LIBDIR)/../bin $(top_srcdir)/src/mswin/batch/instal.sh
41
42 endif
43
44 ALPHADIR = hines@www.neuron.yale.edu:/home/htdocs/ftp/neuron/versions/alpha
45
46 if MAKE_RPMS
47 rpm: @RPM_TARGET@
48
49 .PHONY: rpm
50
51 $(RPM_TARGET): $(DISTFILES)
52         (cd $(libdir) ; strip -d *.so*)
53         (cd @IV_LIBDIR@ ; strip -d *.so*)
54         -rm $(pkgdatadir)/demo/neuron
55         (cd $(pkgdatadir)/demo/release ; $(bindir)/nrnivmodl ; cd $(host_cpu) ; rm -f *.c *.o *.lo *.mod *.la ; cd ../.. ; ln -s release/$(host_cpu)/special neuron )
56         -mkdir -p `dirname $(RPM_TARGET)`
57 #       $(RPM_PROG) $(RPM_ARGS) $(RPM_TARBALL)
58         $(RPM_PROG) -bb nrnrpm.spec
59         @echo Congratulations, $(RPM_TARGET) "(and friends) should now exist."
60
61 rpmdist:
62         scp $(RPM_TARGET) $(ALPHADIR)/nrn-"`sh $(srcdir)/nrnversion.sh 2`".$(host_cpu).rpm
63
64 else
65 endif
66
67 if MAC_DARWIN
68 after_install:
69         carbon="@enable_carbon@" sh $(srcdir)/src/mac/after-install.sh "$(host_cpu)" "$(prefix)" "$(top_srcdir)"
70
71 dmg:
72         carbon="@enable_carbon@" sh $(srcdir)/src/mac/mkdmg.sh NEURON-"`sh $(srcdir)/nrnversion.sh`"
73
74 alphadist:
75 if UniversalMacBinary
76         scp $(HOME)/NEURON-"`sh $(srcdir)/nrnversion.sh`".dmg $(ALPHADIR)/nrn-"`sh $(srcdir)/nrnversion.sh 2`"-MacOSX"`sw_vers -productVersion`".dmg
77 else
78         scp $(HOME)/NEURON-"`sh $(srcdir)/nrnversion.sh`".dmg $(ALPHADIR)/nrn-"`sh $(srcdir)/nrnversion.sh 2`"-$(host_triplet).dmg
79 endif
80
81 else
82 if BUILD_CYGWIN
83 alphadist:
84         scp src/mswin/nrn"`sh $(srcdir)/nrnversion.sh 3`"setup.exe $(ALPHADIR)/nrn-"`sh $(srcdir)/nrnversion.sh 2`"-setup.exe
85 else
86 alphadist:
87         scp nrn-"`sh $(srcdir)/nrnversion.sh`".tar.gz $(ALPHADIR)/nrn-"`sh $(srcdir)/nrnversion.sh 2`".tar.gz
88 endif
89 endif
90
Note: See TracBrowser for help on using the browser.