1999
|
1 # Makefile for octave's doc/faq 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@ |
|
23 VPATH = @srcdir@ |
|
24 |
|
25 include $(TOPDIR)/Makeconf |
|
26 |
|
27 INSTALL = @INSTALL@ |
|
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
29 INSTALL_DATA = @INSTALL_DATA@ |
|
30 |
|
31 SOURCES = |
|
32 |
2870
|
33 TEXINFO := Octave-FAQ.texi |
1999
|
34 |
5706
|
35 FORMATTED := Octave-FAQ.info Octave-FAQ.dvi Octave-FAQ.ps Octave-FAQ.pdf |
1999
|
36 |
6798
|
37 DISTFILES := $(addprefix $(srcdir)/, Makefile.in $(TEXINFO) $(FORMATTED)) |
1999
|
38 |
|
39 SPELL := $(patsubst %.texi, %.spell, $(ALL_TEXINFO)) |
|
40 |
|
41 %.spell : %.texi |
|
42 rm -f $@ |
4084
|
43 $(SED) -e 's/@@/ at /g' -e 's/@[a-zA-Z]*//g' $< | spell > $@.tmp |
1999
|
44 mv $@.tmp $@ |
|
45 |
6900
|
46 all: Octave-FAQ.info Octave-FAQ.dvi Octave-FAQ.ps Octave-FAQ.pdf Octave-FAQ.html |
1999
|
47 .PHONY: all |
|
48 |
5422
|
49 Octave-FAQ.info: $(TEXINFO) |
5708
|
50 -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $< |
1999
|
51 |
5422
|
52 Octave-FAQ.dvi: $(TEXINFO) |
6116
|
53 -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(TEXINPUTS):" \ |
|
54 $(UNSETCOMSPEC) $(TEXI2DVI) $< |
1999
|
55 |
5638
|
56 Octave-FAQ.ps: Octave-FAQ.dvi |
5422
|
57 -dvips -o $@ $< |
1999
|
58 |
5422
|
59 Octave-FAQ.pdf: $(TEXINFO) |
6116
|
60 -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(TEXINPUTS):" \ |
|
61 $(UNSETCOMSPEC) $(TEXI2PDF) $< |
5162
|
62 |
6900
|
63 Octave-FAQ.html: $(TEXINFO) |
|
64 -$(MAKEINFO) --html --ifinfo --no-split --output=$@ -I.. -I$(srcdir) -I$(srcdir)/.. $< |
3189
|
65 |
2811
|
66 check install install-strip uninstall: |
|
67 .PHONY: check install install-strip uninstall |
1999
|
68 |
|
69 tags: $(SOURCES) |
|
70 ctags $(SOURCES) |
|
71 |
|
72 TAGS: $(SOURCES) |
|
73 etags $(SOURCES) |
|
74 |
|
75 spell: $(SPELL) |
|
76 .PHONY: spell |
|
77 |
2749
|
78 mostlyclean clean: |
2870
|
79 rm -f Octave-FAQ.cp Octave-FAQ.fn Octave-FAQ.ky Octave-FAQ.pg \ |
|
80 Octave-FAQ.tp Octave-FAQ.vr Octave-FAQ.cps Octave-FAQ.fns \ |
|
81 Octave-FAQ.kys Octave-FAQ.pgs Octave-FAQ.tps Octave-FAQ.vrs \ |
|
82 Octave-FAQ.aux Octave-FAQ.log Octave-FAQ.toc |
2749
|
83 .PHONY: mostlyclean clean |
|
84 |
1999
|
85 distclean: clean |
|
86 rm -f Makefile |
|
87 .PHONY: distclean |
|
88 |
|
89 maintainer-clean: distclean |
3189
|
90 rm -f tags TAGS Octave-FAQ.info Octave-FAQ.info-* |
5527
|
91 rm -f Octave-FAQ.dvi Octave-FAQ.ps Octave-FAQ.pdf |
6900
|
92 rm -f Octave-FAQ.html |
1999
|
93 .PHONY: maintainer-clean |
|
94 |
|
95 dist: all |
6467
|
96 ln $(DISTFILES) ../../`cat ../../.fname`/doc/faq |
1999
|
97 .PHONY: dist |