1999
|
1 # Makefile for octave's doc directory |
|
2 # |
7017
|
3 # Copyright (C) 1996, 1997, 1999, 2000, 2005, 2006, 2007 John W. Eaton |
|
4 # |
7016
|
5 # This file is part of Octave. |
|
6 # |
|
7 # Octave is free software; you can redistribute it and/or modify it |
|
8 # under the terms of the GNU General Public License as published by the |
|
9 # Free Software Foundation; either version 3 of the License, or (at |
|
10 # your option) any later version. |
|
11 # |
|
12 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 # for more details. |
|
16 # |
|
17 # You should have received a copy of the GNU General Public License |
|
18 # along with Octave; see the file COPYING. If not, see |
|
19 # <http://www.gnu.org/licenses/>. |
1999
|
20 |
|
21 TOPDIR = .. |
|
22 |
|
23 srcdir = @srcdir@ |
|
24 top_srcdir = @top_srcdir@ |
6583
|
25 abs_top_srcdir = @abs_top_srcdir@ |
1999
|
26 VPATH = @srcdir@ |
|
27 |
|
28 include $(TOPDIR)/Makeconf |
|
29 |
|
30 INSTALL = @INSTALL@ |
|
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
32 INSTALL_DATA = @INSTALL_DATA@ |
|
33 |
|
34 SOURCES = |
|
35 |
6797
|
36 DISTFILES = $(addprefix $(srcdir)/, Makefile.in ChangeLog conf.texi.in texinfo.tex) conf.texi |
1999
|
37 |
|
38 SUBDIRS = faq interpreter liboctave refcard |
|
39 |
|
40 DISTSUBDIRS = $(SUBDIRS) |
|
41 |
5708
|
42 all: conf.texi $(SUBDIRS) |
1999
|
43 .PHONY: all |
|
44 |
7315
|
45 conf.texi: conf.texi.in $(TOPDIR)/Makeconf $(top_srcdir)/src/version.h |
5708
|
46 @$(do-subst-texinfo-vals) |
|
47 |
3297
|
48 ../BUGS ../INSTALL.OCTAVE: |
|
49 $(MAKE) -C interpreter ../$@ |
|
50 .PHONY: ../BUGS ../INSTALL.OCTAVE |
2002
|
51 |
1999
|
52 $(SUBDIRS): |
3297
|
53 $(MAKE) -C $@ all |
1999
|
54 .PHONY: $(SUBDIRS) |
|
55 |
2811
|
56 install install-strip uninstall clean mostlyclean distclean maintainer-clean:: |
1999
|
57 @$(subdir-for-command) |
2811
|
58 .PHONY: install install-strip uninstall |
|
59 .PHONY: clean mostlyclean distclean maintainer-clean |
1999
|
60 |
|
61 tags TAGS:: $(SOURCES) |
|
62 $(SUBDIR_FOR_COMMAND) |
|
63 |
|
64 tags:: |
|
65 ctags $(SOURCES) |
|
66 |
|
67 TAGS:: $(SOURCES) |
|
68 etags $(SOURCES) |
|
69 |
|
70 distclean:: |
|
71 rm -f Makefile |
|
72 |
2386
|
73 maintainer-clean:: |
|
74 rm -f tags TAGS Makefile |
1999
|
75 |
5708
|
76 dist: conf.texi |
6467
|
77 ln $(DISTFILES) ../`cat ../.fname`/doc |
3297
|
78 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/doc/$$dir; $(MAKE) -C $$dir $@; done |
1999
|
79 .PHONY: dist |