~ubuntu-branches/ubuntu/trusty/scotch/trusty

« back to all changes in this revision

Viewing changes to .pc/ptscotch.patch/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): "Adam C. Powell, IV", Christophe Trophime, Adam C. Powell, IV
  • Date: 2010-12-29 13:07:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101229130719-jwalolw5d6av6wqx
Tags: 5.1.11.dfsg-1
[Christophe Trophime]
* New upstream release
* Forward-ported patches to version 5.1.10b.
* Install scotch headers properly.
* Fix chrpath commands in debian/rules.
* Fix (pt)scotch library install paths.
* Fix lintian errors and warnings.

[Adam C. Powell, IV]
* Forward-ported patches to version 5.1.11.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## Copyright 2004,2007-2009 ENSEIRB, INRIA & CNRS
 
1
## Copyright 2004,2007-2010 ENSEIRB, INRIA & CNRS
2
2
##
3
3
## This file is part of the Scotch software package for static mapping,
4
4
## graph partitioning and sparse matrix ordering.
30
30
## knowledge of the CeCILL-C license and that you accept its terms.
31
31
##
32
32
 
33
 
VERSION = 5.1
 
33
VERSION = 5
 
34
RELEASE = 1
 
35
PATCHLEVEL = 10
34
36
 
35
37
.PHONY                          :       clean   default install ptscotch        realclean       required        scotch
36
38
 
53
55
 
54
56
include Makefile.inc
55
57
 
56
 
prefix          ?= "/usr/local"
57
 
bindir          ?= "$(prefix)/bin"
58
 
includedir      ?= "$(prefix)/include"
59
 
libdir          ?= "$(prefix)/lib"
60
 
datarootdir     ?= "$(prefix)/share"
61
 
mandir          ?= "$(datarootdir)/man"
 
58
prefix          ?= /usr/local
 
59
bindir          ?= $(prefix)/bin
 
60
includedir      ?= $(prefix)/include
 
61
libdir          ?= $(prefix)/lib
 
62
datarootdir     ?= $(prefix)/share
 
63
mandir          ?= $(datarootdir)/man
62
64
 
63
65
../bin                          :
64
66
                                        -$(MKDIR) ../bin
69
71
../lib                          :
70
72
                                        -$(MKDIR) ../lib
71
73
 
 
74
$(bindir)                       :
 
75
                                        -$(MKDIR) $(bindir)
 
76
 
 
77
$(datarootdir)                  :
 
78
                                        -$(MKDIR) $(datarootdir)
 
79
 
 
80
$(includedir)                   :
 
81
                                        -$(MKDIR) $(includedir)
 
82
 
 
83
$(libdir)                       :
 
84
                                        -$(MKDIR) $(libdir)
 
85
 
 
86
$(mandir)                       :       $(datarootdir)
 
87
                                        -$(MKDIR) $(mandir)
 
88
 
 
89
$(mandir)/man1                  :       $(mandir)
 
90
                                        -$(MKDIR) $(mandir)/man1
 
91
 
72
92
scotch                          :       required
73
 
                                        (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" scotch && $(MAKE) install)
74
 
                                        (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" scotch && $(MAKE) install)
75
 
                                        (cd libscotchmetis ; $(MAKE)                        scotch && $(MAKE) install)
76
 
                                        (cd esmumps ;        $(MAKE)                        scotch && $(MAKE) install)
 
93
                                        (cd libscotch ;      $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
 
94
                                        (cd scotch ;         $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
 
95
                                        (cd libscotchmetis ; $(MAKE)                                                                scotch && $(MAKE) install)
 
96
                                        (cd esmumps ;        $(MAKE)                                                                scotch && $(MAKE) install)
77
97
 
78
98
ptscotch                        :       required
79
 
                                        (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" ptscotch && $(MAKE) ptinstall)
80
 
                                        (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" ptscotch && $(MAKE) ptinstall)
81
 
                                        (cd libscotchmetis ; $(MAKE)                        ptscotch && $(MAKE) ptinstall)
82
 
                                        (cd esmumps ;        $(MAKE)                        ptscotch && $(MAKE) ptinstall)
 
99
                                        (cd libscotch ;      $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) ptscotch && $(MAKE) ptinstall)
 
100
                                        (cd scotch ;         $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) ptscotch && $(MAKE) ptinstall)
 
101
                                        (cd libscotchmetis ; $(MAKE)                                                                ptscotch && $(MAKE) ptinstall)
 
102
                                        (cd esmumps ;        $(MAKE)                                                                ptscotch && $(MAKE) ptinstall)
83
103
 
84
 
install                         :       required
 
104
install                         :       required        $(bindir)       $(includedir)   $(libdir)       $(mandir)/man1
 
105
                                        -$(CP) -f ../bin/[agm]*$(EXE) $(bindir)
85
106
                                        -$(CP) -f ../include/*scotch*.h $(includedir)
86
107
                                        -$(CP) -f ../lib/*scotch*$(LIB) $(libdir)
 
108
                                        -$(CP) -Rf ../man/* $(mandir)
87
109
 
88
110
clean                           :       required
89
111
                                        (cd libscotch ;      $(MAKE) clean)