Migrated to the latest automake & libtool releases/prereleases, with all
[alexxy/gromacs.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Note: Makefile is automatically generated from Makefile.in by the configure
3 # script, and Makefile.in is automatically from Makefile.am by automake.
4
5 # N.B.: To be able to use dependency tracking on all hosts (not only w. gmake/gcc)
6 # and to use the suffix in library names we need the development versions of
7 # automake. Presently, this means automake version 1.4f. In Groningen, you
8 # can find that under ~lindahl/gnu/bin , or download a copy from www.gromacs.org
9
10 AUTOMAKE_OPTIONS = foreign
11
12 SUBDIRS = src admin scripts share include man
13
14 #
15 # Most files in the config subdir is included automatically when
16 # we issue "make dist", but not depcomp
17
18 EXTRA_DIST = config/depcomp                                    
19
20 install-hook:
21         @echo ""
22         @echo "GROMACS is installed under $(prefix)."
23         @echo "Make sure to update your PATH and MANPATH to find the"
24         @echo "programs and unix manual pages, and possibly LD_LIBRARY_PATH"
25         @echo "or /etc/ld.so.conf if you are using dynamic libraries."
26         @echo ""
27         @echo "If you want links to the executables in /usr/local/bin,"
28         @echo "you can issue \"make links\" now."
29
30 # Shortcuts to construct and install the mdrun executable
31
32 mdrun:          
33         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
34         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
35         (cd $(top_builddir)/src/kernel && $(MAKE) mdrun ; exit 0)
36
37 install-mdrun:
38         (cd $(top_builddir)/src/gmxlib && $(MAKE) install ; exit 0)
39         (cd $(top_builddir)/src/mdlib && $(MAKE) install ; exit 0)
40         (cd $(top_builddir)/src/kernel && $(MAKE) install-mdrun ; exit 0)
41
42 links:
43         programs=$(bindir)/* 
44         (cd /usr/local/bin && for i in $(programs); do \
45            (test ! -f $$i && $(LN_S) $$i . ; exit 0); \
46         done)
47
48 rpm:
49         mkdir -p rpmdir/BUILD \
50           rpmdir/SPECS \
51           rpmdir/SOURCES \
52           rpmdir/SRPMS \
53           rpmdir/RPMS/i386
54         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
55         rpm --buildroot $$PWD/rpmdir/buildroot --clean -bb $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
56         @echo "========================================================"
57         @echo "Finished - packages are located under rpmdir/RPMS/i386 !"
58
59
60 # Dont try to make rpm and mpi-rpm in parallel.
61
62 mpi-rpm:        
63         mkdir -p rpmdir/BUILD \
64           rpmdir/SPECS \
65           rpmdir/SOURCES \
66           rpmdir/SRPMS \
67           rpmdir/RPMS/i386
68         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-mpi-$(VERSION).tar.gz
69         rpm --buildroot $$PWD/rpmdir/buildroot-mpi --clean -bb rpm_build/SPECS/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
70         @echo "========================================================"
71         @echo "Finished - packages are located under rpmdir/RPMS/i386 !"
72
73 CLEANFILES = *~ \\\#* 
74
75 DISTCLEANFILES = libtool config.cache config.log
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148