Mercurial > octave-antonio
annotate scripts/startup/Makefile.in @ 8920:eb63fbe60fab
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Mar 2009 10:41:27 -0500 |
parents | 4584feed3ec4 |
children |
rev | line source |
---|---|
732 | 1 # Makefile for octave's scripts/startup directory |
2 # | |
8920 | 3 # Copyright (C) 1994, 1995, 1996, 1997, 2003, 2005, 2006, 2007, 2008 |
7017 | 4 # John W. Eaton |
5 # | |
7016 | 6 # This file is part of Octave. |
7 # | |
8 # Octave is free software; you can redistribute it and/or modify it | |
9 # under the terms of the GNU General Public License as published by the | |
10 # Free Software Foundation; either version 3 of the License, or (at | |
11 # your option) any later version. | |
12 # | |
13 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 # for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with Octave; see the file COPYING. If not, see | |
20 # <http://www.gnu.org/licenses/>. | |
732 | 21 |
22 TOPDIR = ../.. | |
23 | |
24 script_sub_dir = startup | |
25 | |
26 srcdir = @srcdir@ | |
27 top_srcdir = @top_srcdir@ | |
28 VPATH = @srcdir@ | |
29 | |
30 include $(TOPDIR)/Makeconf | |
31 | |
32 INSTALL = @INSTALL@ | |
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
34 INSTALL_DATA = @INSTALL_DATA@ | |
35 | |
7388 | 36 SOURCES = __finish__.m main-rcfile local-rcfile inputrc |
732 | 37 |
6797 | 38 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES)) |
732 | 39 |
7388 | 40 FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES)) |
41 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) | |
732 | 42 |
5597 | 43 all: PKG_ADD |
732 | 44 .PHONY: all |
45 | |
2811 | 46 install install-strip: |
4413 | 47 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) |
48 if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; then true; \ | |
732 | 49 else \ |
5316 | 50 $(INSTALL_DATA) $(srcdir)/main-rcfile \ |
4413 | 51 $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; \ |
732 | 52 fi |
5316 | 53 if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; then true; \ |
54 else \ | |
55 $(INSTALL_DATA) $(srcdir)/inputrc \ | |
56 $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; \ | |
57 fi | |
4413 | 58 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir) |
59 if test -f $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ | |
3028 | 60 then true; \ |
1475 | 61 else \ |
5316 | 62 $(INSTALL_DATA) $(srcdir)/local-rcfile \ |
4413 | 63 $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ |
1475 | 64 fi |
7388 | 65 for f in $(FCN_FILES_NO_DIR); do \ |
66 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ | |
67 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ | |
68 done | |
2811 | 69 .PHONY: install install-strip |
732 | 70 |
71 uninstall: | |
7388 | 72 for f in $(FCN_FILES_NO_DIR); \ |
73 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ | |
74 done | |
732 | 75 .PHONY: uninstall |
76 | |
77 clean: | |
78 .PHONY: clean | |
79 | |
5597 | 80 PKG_ADD: $(FCN_FILES) |
81 @echo "making PKG_ADD" | |
82 @$(do-mkpkgadd) | |
83 | |
732 | 84 tags: $(SOURCES) |
85 ctags $(SOURCES) | |
86 | |
87 TAGS: $(SOURCES) | |
88 etags $(SOURCES) | |
89 | |
90 mostlyclean: clean | |
91 .PHONY: mostlyclean | |
92 | |
93 distclean: clean | |
5866 | 94 rm -f Makefile PKG_ADD |
732 | 95 .PHONY: distclean |
96 | |
1391 | 97 maintainer-clean: distclean |
732 | 98 rm -f tags TAGS |
1391 | 99 .PHONY: maintainer-clean |
732 | 100 |
101 dist: | |
6467 | 102 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/startup |
732 | 103 .PHONY: dist |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7388
diff
changeset
|
104 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7388
diff
changeset
|
105 check-m-sources: |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7388
diff
changeset
|
106 @$(do-check-m-sources) |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7388
diff
changeset
|
107 .PHONY: check-m-sources |