Mercurial > octave-nkf
annotate scripts/Makefile.in @ 8920:eb63fbe60fab
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Mar 2009 10:41:27 -0500 |
parents | e258715b2e78 |
children | 4531741e5236 |
rev | line source |
---|---|
4 | 1 # Makefile for octave's scripts directory |
2 # | |
7017 | 3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, |
8920 | 4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 John W. Eaton |
7017 | 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/>. | |
4 | 21 |
22 TOPDIR = .. | |
23 | |
686 | 24 script_sub_dir = . |
25 | |
4 | 26 srcdir = @srcdir@ |
409 | 27 top_srcdir = @top_srcdir@ |
4 | 28 VPATH = @srcdir@ |
29 | |
30 include $(TOPDIR)/Makeconf | |
31 | |
651 | 32 INSTALL = @INSTALL@ |
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
34 INSTALL_DATA = @INSTALL_DATA@ | |
35 | |
6283 | 36 SOURCES = |
4 | 37 |
3319 | 38 ALL_M_FILES1 := $(shell find $(srcdir) -name '*.m' -print) |
39 ALL_M_FILES := $(patsubst $(srcdir)/%, %, $(ALL_M_FILES1)) | |
40 | |
6797 | 41 DISTFILES = $(addprefix $(srcdir)/, Makefile.in ChangeLog $(SOURCES) \ |
6796 | 42 configure.in configure mkinstalldirs mkdoc mkpkgadd gethelp.cc \ |
43 skip-autoheader move-if-change) DOCSTRINGS | |
4 | 44 |
8575
f134925a1cfa
m-file implementation of help system
Soren Hauberg <soren@hauberg.org>
parents:
7988
diff
changeset
|
45 SUBDIRS = audio deprecated elfun general geometry help image io \ |
5812 | 46 linear-algebra miscellaneous optimization path pkg plot polynomial \ |
7988
21904fe299c8
Remove the control, finance and quaternion toolboxes
David Bateman <dbateman@free.fr>
parents:
7698
diff
changeset
|
47 set signal sparse specfun special-matrix startup \ |
5589 | 48 statistics strings testfun time |
686 | 49 |
50 DISTSUBDIRS = $(SUBDIRS) | |
569 | 51 |
688 | 52 FCN_FILES = # $(wildcard $(srcdir)/*.m) |
53 FCN_FILES_NO_DIR = # $(notdir $(FCN_FILES)) | |
4 | 54 |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
55 CONFIG_FILES = @ac_config_files@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
56 |
3295 | 57 all: $(SUBDIRS) DOCSTRINGS |
4 | 58 .PHONY: all |
59 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
60 configfiles: $(CONFIG_FILES) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
61 .PHONY: configfiles |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
62 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
63 $(CONFIG_FILES): %: %.in config.status |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
64 ./config.status $@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
65 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
66 config.status: configure |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
67 ./config.status --recheck |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
68 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
69 configure: configure.in |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
70 if [ ! -f skip-autoconf ]; then autoconf --force; fi |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
71 if [ ! -f skip-autoheader ]; then autoheader --force; fi |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8698
diff
changeset
|
72 |
1182 | 73 $(SUBDIRS): |
3297 | 74 $(MAKE) -C $@ all |
1182 | 75 .PHONY: $(SUBDIRS) |
76 | |
4098 | 77 DOCSTRINGS: gethelp$(BUILD_EXEEXT) mkdoc $(ALL_M_FILES) |
3295 | 78 $(srcdir)/mkdoc $(srcdir) > $@.t |
3319 | 79 mv $@.t $@ |
3295 | 80 |
4098 | 81 gethelp$(BUILD_EXEEXT): gethelp.cc |
4298 | 82 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) |
4093 | 83 |
2811 | 84 install install-strip uninstall clean mostlyclean distclean maintainer-clean:: |
1685 | 85 @$(subdir-for-command) |
2811 | 86 .PHONY: install install-strip uninstall |
87 .PHONY: clean mostlyclean distclean maintainer-clean | |
1182 | 88 |
89 tags TAGS:: $(SOURCES) | |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
90 $(subdir-for-command) |
4 | 91 |
1182 | 92 tags:: |
4 | 93 ctags $(SOURCES) |
94 | |
1182 | 95 TAGS:: $(SOURCES) |
4 | 96 etags $(SOURCES) |
97 | |
5276 | 98 clean distclean maintainer-clean:: |
4098 | 99 rm -f gethelp$(BUILD_EXEEXT) |
3601 | 100 |
5276 | 101 distclean maintainer-clean:: |
8873
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
102 rm -f tags TAGS Makefile config.log config.status DOCSTRINGS |
5527 | 103 rm -rf autom4te.cache |
4 | 104 |
2392 | 105 maintainer-clean:: |
8873
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
106 rm -f configure |
4 | 107 |
108 dist: | |
6467 | 109 ln $(DISTFILES) ../`cat ../.fname`/scripts |
3297 | 110 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/scripts/$$dir; $(MAKE) -C $$dir $@; done |
4 | 111 .PHONY: dist |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
112 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
113 check-m-sources: |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
114 @$(subdir-for-command) |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
115 .PHONY: check-m-sources |