Add pdf target in doc/.
[gnulib.git] / doc / Makefile
1 # $Id: Makefile,v 1.8 2007-07-06 22:56:38 haible Exp $
2 # Makefile for gnulib doc.  
3 # Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
4 #
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved.
8
9 doc = gnulib
10
11 TEXI2HTML = $(MAKEINFO) --no-split --reference-limit=2000 --html
12 %.html: %.texi
13         $(TEXI2HTML) -o $@ $<
14
15 %.info: %.texi
16         LANG= LC_MESSAGES= LC_ALL= LANGUAGE= makeinfo --no-split --reference-limit=2000 $<
17
18 %.pdf: %.texi
19         texi2pdf $<
20
21 all: info html dvi
22 info: $(doc).info
23 html: $(doc).html
24 dvi: $(doc).dvi
25 pdf: $(doc).pdf
26
27 # Dependencies. Search for @include to find them all.
28 gnulib.info gnulib.html gnulib.dvi gnulib.pdf: gnulib.texi gnulib-intro.texi gnulib-tool.texi $(wildcard headers/*.texi) $(wildcard functions/*.texi) quote.texi error.texi gcd.texi relocatable-maint.texi regexprops-generic.texi fdl.texi
29 standards.info standards.html standards.dvi: standards.texi make-stds.texi fdl.texi
30
31 mostlyclean:
32         rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr *.vrs
33
34 clean: mostlyclean
35         rm -f *.info *.html *.dvi *.ps *.pdf