1999
|
1 # Makefile for octave's doc 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/>. |
1999
|
18 |
|
19 TOPDIR = .. |
|
20 |
|
21 srcdir = @srcdir@ |
|
22 top_srcdir = @top_srcdir@ |
6583
|
23 abs_top_srcdir = @abs_top_srcdir@ |
1999
|
24 VPATH = @srcdir@ |
|
25 |
|
26 include $(TOPDIR)/Makeconf |
|
27 |
|
28 INSTALL = @INSTALL@ |
|
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
30 INSTALL_DATA = @INSTALL_DATA@ |
|
31 |
|
32 SOURCES = |
|
33 |
6797
|
34 DISTFILES = $(addprefix $(srcdir)/, Makefile.in ChangeLog conf.texi.in texinfo.tex) conf.texi |
1999
|
35 |
|
36 SUBDIRS = faq interpreter liboctave refcard |
|
37 |
|
38 DISTSUBDIRS = $(SUBDIRS) |
|
39 |
5708
|
40 all: conf.texi $(SUBDIRS) |
1999
|
41 .PHONY: all |
|
42 |
5708
|
43 conf.texi: conf.texi.in $(TOPDIR)/Makeconf |
|
44 @$(do-subst-texinfo-vals) |
|
45 |
3297
|
46 ../BUGS ../INSTALL.OCTAVE: |
|
47 $(MAKE) -C interpreter ../$@ |
|
48 .PHONY: ../BUGS ../INSTALL.OCTAVE |
2002
|
49 |
1999
|
50 $(SUBDIRS): |
3297
|
51 $(MAKE) -C $@ all |
1999
|
52 .PHONY: $(SUBDIRS) |
|
53 |
2811
|
54 install install-strip uninstall clean mostlyclean distclean maintainer-clean:: |
1999
|
55 @$(subdir-for-command) |
2811
|
56 .PHONY: install install-strip uninstall |
|
57 .PHONY: clean mostlyclean distclean maintainer-clean |
1999
|
58 |
|
59 tags TAGS:: $(SOURCES) |
|
60 $(SUBDIR_FOR_COMMAND) |
|
61 |
|
62 tags:: |
|
63 ctags $(SOURCES) |
|
64 |
|
65 TAGS:: $(SOURCES) |
|
66 etags $(SOURCES) |
|
67 |
|
68 distclean:: |
|
69 rm -f Makefile |
|
70 |
2386
|
71 maintainer-clean:: |
|
72 rm -f tags TAGS Makefile |
1999
|
73 |
5708
|
74 dist: conf.texi |
6467
|
75 ln $(DISTFILES) ../`cat ../.fname`/doc |
3297
|
76 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/doc/$$dir; $(MAKE) -C $$dir $@; done |
1999
|
77 .PHONY: dist |