Removed rtp2xml as a default program for 3.2.0
[gromacs.git] / Makefile.am
blobc7a49132d5b8ca256695aca4645d3da0c8d9bcd6
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.
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
10 AUTOMAKE_OPTIONS = foreign
12 SUBDIRS = src admin scripts share include man
15 # Most files in the config subdir is included automatically when
16 # we issue "make dist", but not depcomp
18 EXTRA_DIST = config/depcomp                                    
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."
30 # Shortcuts to construct and install the mdrun executable
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)
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)
42 links:
43         cd $(bindir) && programs=`ls` && cd /usr/local/bin && \
44         for i in $$programs; do \
45            (test ! -f $$i && $(LN_S) $(bindir)/$$i . ; exit 0); \
46         done
49 RPMARCH=`rpm --showrc | awk '/^build arch/ {print $$4}'`
51 rpm:
52         mkdir -p rpmdir/BUILD \
53           rpmdir/SPECS \
54           rpmdir/SOURCES \
55           rpmdir/SRPMS \
56           rpmdir/RPMS/$(RPMARCH)
57         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
58         $(RPM) --clean -ba $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
59         @echo "============================================================"
60         @echo "Finished - the packages are in rpmdir/RPMS and rpmdir/SRPMS!"
63 mpi-rpm:        
64         mkdir -p rpmdir/BUILD \
65           rpmdir/SPECS \
66           rpmdir/SOURCES \
67           rpmdir/SRPMS \
68           rpmdir/RPMS/$(RPMARCH)
69         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-$(VERSION).tar.gz
70         $(RPM) --clean -bb $(top_srcdir)/admin/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
71         @echo "============================================"
72         @echo "Finished - the packages are in rpmdir/RPMS!"
74 CLEANFILES = *~ \\\#* 
76 DISTCLEANFILES = libtool config.cache config.log