summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: eb8be2f695e74929967f19168161fb9568db1bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Makefile.am - Makefile template for the manual.
# Copyright (C) 2003 Free Software Foundation, Inc.
# Written by Neal H. Walfield
#
# This file is part of the GNU Hurd.
# 
# The GNU Hurd is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# The GNU Hurd is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA

pkgdata_DATA = hurd-on-l4.dvi hurd-on-l4.ps hurd-on-l4.pdf

EXTRA_DIST=${fig_files} ${eps_files} ${tex_files} hurd-on-l4.ps hurd-on-l4.pdf

tex_files= hurd-on-l4.tex \
	introduction.tex \
	booting.tex \
	ipc.tex \
	threads-tasks.tex \
	vmm.tex \
	posix.tex \
	debugging.tex \
	device-drivers.tex

fig_files=ddf_insert_event.fig ddf_several_plms.fig

eps_files=$(patsubst %.fig,%.eps,${fig_files})
eps_cleanfiles=${eps_files}

# _DEPENDENCIES does not work with _DATA.
hurd-on-l4.dvi: ${eps_files} ${tex_files}

SUFFIXES = .ps .dvi .tex .eps .fig .pdf

.tex.dvi:
	$(LATEX) $< -o $@
	while egrep "^LaTeX Warning:.*Rerun to" \
	    `echo $< | sed -e 's/.tex$$/.log/'`; do \
	  rm -f $(subst $<,.tex,.log); \
	  $(LATEX) $< -o $@; \
	done

.dvi.ps:
	$(DVIPS) $<

.ps.pdf:
	$(PS2PDF) $<

.fig.eps:
	$(FIG2DEV) -L eps $< $@

clean:
	rm -f *.aux *.ps *.dvi *.pdf *.log *.toc

MAINTAINERCLEANFILES=${eps_cleanfiles}