revert between 56095 -> 55830 in arch
[AROS.git] / tools / cxref / doc / Makefile.in
blobf5be61641226e26f9dcc5329c4b6a188ad1ca954
1 # $Header$
3 # C Cross Referencing & Documentation tool. Version 1.5c.
5 # Documentation Makefile.
7 # Written by Andrew M. Bishop
9 # This file Copyright 1995,96,99,2001 Andrew M. Bishop
10 # It may be distributed under the GNU Public License, version 2, or
11 # any higher version. See section COPYING of the GNU Public license
12 # for conditions under which this file may be redistributed.
15 # autoconf things
17 objdir=@objdir@
18 srcdir=@srcdir@
19 VPATH=@srcdir@
21 # The LaTeX and dvips programs
23 LATEX=@LATEX@
24 DVIPS=@DVIPS@
26 ########
28 SRC_SOURCE_FILES= \
29 cxref.c \
30 cxref.h \
31 datatype.h \
32 comment.c \
33 file.c \
34 func.c \
35 preproc.c \
36 type.c \
37 var.c \
38 xref.c \
39 warn-raw.c \
40 latex.c \
41 html.c \
42 rtf.c \
43 sgml.c \
44 slist.c \
45 memory.h \
46 memory.c \
47 parse-yy.h
49 OBJ_SOURCE_FILES= \
50 autoconfig.h \
51 latex-style.c \
52 parse-yacc.h \
53 parse-lex.c \
54 parse-yacc.c
56 ########
58 all : sources docs
61 ########
63 sources :
65 # Create the cross reference files
67 @cd $(srcdir) && for file in $(SRC_SOURCE_FILES) ; do \
68 echo Cross referencing $$file ; \
69 ( cd .. ; $(objdir)/cxref -xref -O$(objdir)/doc -Ncxref $$file -I$(objdir) ) ; \
70 done
71 @for file in $(OBJ_SOURCE_FILES) ; do \
72 echo Cross referencing $$file ; \
73 ( cd .. ; $(objdir)/cxref -xref -O$(objdir)/doc -Ncxref $$file -I. ) ; \
74 done
76 # Create the source files using cxref
78 @cd $(srcdir) && for file in $(SRC_SOURCE_FILES) ; do \
79 echo Documenting $$file ; \
80 ( cd .. ; $(objdir)/cxref -warn-xref -xref -O$(objdir)/doc -Ncxref -latex2e -html32-src -rtf -sgml $$file -I$(objdir) ) ; \
81 done
82 @for file in $(OBJ_SOURCE_FILES) ; do \
83 echo Documenting $$file ; \
84 ( cd .. ; $(objdir)/cxref -warn-xref -xref -O$(objdir)/doc -Ncxref -latex2e -html32-src -rtf -sgml $$file -I. ) ; \
85 done
87 # Create the index using cxref
89 @echo Indexing
90 @( cd .. ; $(objdir)/cxref -index-all -O$(objdir)/doc -Ncxref -latex2e -html32 -rtf -sgml )
92 ########
94 docs :
96 # Create the final output using latex
98 [ "x$(LATEX)" = "x" ] || $(LATEX) cxref.tex > /dev/null 2>&1
100 # Create the cross references using latex
102 [ "x$(LATEX)" = "x" ] || $(LATEX) cxref.tex
104 ########
106 clean :
107 -rm -f *~ \
108 *.sty *.tex *.html *.rtf *.sgml \
109 cxref.function cxref.include cxref.typedef cxref.variable \
110 cxref.aux cxref.dvi cxref.log cxref.toc
112 ####
114 distclean : clean
115 -rm -f Makefile
117 ########