732
|
1 # Makefile for octave's scripts/startup 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/>. |
732
|
18 |
|
19 TOPDIR = ../.. |
|
20 |
|
21 script_sub_dir = startup |
|
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 = main-rcfile local-rcfile inputrc |
732
|
34 |
6797
|
35 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES)) |
732
|
36 |
6283
|
37 FCN_FILES = |
|
38 FCN_FILES_NO_DIR = |
732
|
39 |
5597
|
40 all: PKG_ADD |
732
|
41 .PHONY: all |
|
42 |
2811
|
43 install install-strip: |
4413
|
44 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) |
|
45 if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; then true; \ |
732
|
46 else \ |
5316
|
47 $(INSTALL_DATA) $(srcdir)/main-rcfile \ |
4413
|
48 $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; \ |
732
|
49 fi |
5316
|
50 if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; then true; \ |
|
51 else \ |
|
52 $(INSTALL_DATA) $(srcdir)/inputrc \ |
|
53 $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; \ |
|
54 fi |
4413
|
55 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir) |
|
56 if test -f $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ |
3028
|
57 then true; \ |
1475
|
58 else \ |
5316
|
59 $(INSTALL_DATA) $(srcdir)/local-rcfile \ |
4413
|
60 $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ |
1475
|
61 fi |
3028
|
62 # for f in $(FCN_FILES_NO_DIR); do \ |
4413
|
63 # rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
|
64 # $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
732
|
65 # done |
2811
|
66 .PHONY: install install-strip |
732
|
67 |
|
68 uninstall: |
3028
|
69 # for f in $(FCN_FILES_NO_DIR); \ |
4413
|
70 # do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
732
|
71 # done |
|
72 .PHONY: uninstall |
|
73 |
|
74 clean: |
|
75 .PHONY: clean |
|
76 |
5597
|
77 PKG_ADD: $(FCN_FILES) |
|
78 @echo "making PKG_ADD" |
|
79 @$(do-mkpkgadd) |
|
80 |
732
|
81 tags: $(SOURCES) |
|
82 ctags $(SOURCES) |
|
83 |
|
84 TAGS: $(SOURCES) |
|
85 etags $(SOURCES) |
|
86 |
|
87 mostlyclean: clean |
|
88 .PHONY: mostlyclean |
|
89 |
|
90 distclean: clean |
5866
|
91 rm -f Makefile PKG_ADD |
732
|
92 .PHONY: distclean |
|
93 |
1391
|
94 maintainer-clean: distclean |
732
|
95 rm -f tags TAGS |
1391
|
96 .PHONY: maintainer-clean |
732
|
97 |
|
98 dist: |
6467
|
99 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/startup |
732
|
100 .PHONY: dist |