5164
|
1 # Makefile for octave's scripts/sparse directory |
|
2 # |
7016
|
3 # This file is part of Octave. |
|
4 # |
|
5 # Octave is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License as published by the |
|
7 # Free Software Foundation; either version 3 of the License, or (at |
|
8 # your option) any later version. |
|
9 # |
|
10 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 # for more details. |
|
14 # |
|
15 # You should have received a copy of the GNU General Public License |
|
16 # along with Octave; see the file COPYING. If not, see |
|
17 # <http://www.gnu.org/licenses/>. |
5164
|
18 |
|
19 TOPDIR = ../.. |
|
20 |
|
21 script_sub_dir = sparse |
|
22 |
|
23 srcdir = @srcdir@ |
|
24 top_srcdir = @top_srcdir@ |
|
25 VPATH = @srcdir@ |
|
26 |
|
27 include $(TOPDIR)/Makeconf |
|
28 |
|
29 INSTALL = @INSTALL@ |
|
30 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
31 INSTALL_DATA = @INSTALL_DATA@ |
|
32 |
6283
|
33 SOURCES = colperm.m etreeplot.m gplot.m nonzeros.m normest.m \ |
|
34 pcg.m pcr.m spalloc.m spconvert.m spdiags.m speye.m spfun.m \ |
|
35 sphcat.m spones.m sprand.m sprandn.m sprandsym.m spstats.m \ |
|
36 spvcat.m spy.m treeplot.m |
5164
|
37 |
6797
|
38 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES)) |
5164
|
39 |
6283
|
40 FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES)) |
5164
|
41 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
42 |
5597
|
43 all: PKG_ADD |
5164
|
44 .PHONY: all |
|
45 |
|
46 install install-strip: |
|
47 $(do-script-install) |
|
48 .PHONY: install install-strip |
|
49 |
|
50 uninstall: |
|
51 $(do-script-uninstall) |
|
52 .PHONY: uninstall |
|
53 |
|
54 clean: |
|
55 .PHONY: clean |
|
56 |
5597
|
57 PKG_ADD: $(FCN_FILES) |
|
58 @echo "making PKG_ADD" |
|
59 @$(do-mkpkgadd) |
|
60 |
5164
|
61 tags: $(SOURCES) |
|
62 ctags $(SOURCES) |
|
63 |
|
64 TAGS: $(SOURCES) |
|
65 etags $(SOURCES) |
|
66 |
|
67 mostlyclean: clean |
|
68 .PHONY: mostlyclean |
|
69 |
|
70 distclean: clean |
5866
|
71 rm -f Makefile PKG_ADD |
5164
|
72 .PHONY: distclean |
|
73 |
|
74 maintainer-clean: distclean |
|
75 rm -f tags TAGS |
|
76 .PHONY: maintainer-clean |
|
77 |
|
78 dist: |
6467
|
79 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/sparse |
5164
|
80 .PHONY: dist |