5811
|
1 # Makefile for octave's scripts/pkg 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/>. |
5811
|
18 |
|
19 TOPDIR = ../.. |
|
20 |
5928
|
21 script_sub_dir = pkg |
5811
|
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 = pkg.m |
5811
|
34 |
6797
|
35 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES)) |
5811
|
36 |
6283
|
37 FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES)) |
5811
|
38 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
39 |
|
40 all: PKG_ADD |
|
41 .PHONY: all |
|
42 |
|
43 install install-strip: |
|
44 $(do-script-install) |
|
45 .PHONY: install install-strip |
|
46 |
|
47 uninstall: |
|
48 $(do-script-uninstall) |
|
49 .PHONY: uninstall |
|
50 |
|
51 clean: |
|
52 .PHONY: clean |
|
53 |
|
54 PKG_ADD: $(FCN_FILES) |
|
55 @echo "making PKG_ADD" |
|
56 @$(do-mkpkgadd) |
|
57 |
|
58 tags: $(SOURCES) |
|
59 ctags $(SOURCES) |
|
60 |
|
61 TAGS: $(SOURCES) |
|
62 etags $(SOURCES) |
|
63 |
|
64 mostlyclean: clean |
|
65 .PHONY: mostlyclean |
|
66 |
|
67 distclean: clean |
5866
|
68 rm -f Makefile PKG_ADD |
5811
|
69 .PHONY: distclean |
|
70 |
|
71 maintainer-clean: distclean |
|
72 rm -f tags TAGS |
|
73 .PHONY: maintainer-clean |
|
74 |
|
75 dist: |
6467
|
76 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/pkg |
5811
|
77 .PHONY: dist |