home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-02-24 | 1.6 KB | 97 lines |
- # $Header: /home/amb/cxref/doc/RCS/Makefile 1.6 1996/02/24 14:53:08 amb Exp $
- #
- # C Cross Referencing & Documentation tool. Version 1.0
- #
- # Documentation Makefile.
- #
- # Written by Andrew M. Bishop
- #
- # This file Copyright 1995,96 Andrew M. Bishop
- # It may be distributed under the GNU Public License, version 2, or
- # any higher version. See section COPYING of the GNU Public license
- # for conditions under which this file may be redistributed.
- #
-
- LATEX=latex
-
- DOCS=cxref.dvi
-
- ########
-
- SOURCE_FILES= \
- cxref.c \
- cxref.h \
- datatype.h \
- comment.c \
- file.c \
- func.c \
- preproc.c \
- type.c \
- var.c \
- xref.c \
- warn-raw.c \
- latex.c \
- latex-style.c \
- html.c \
- slist.c \
- memory.h \
- memory.c \
- parse-yy.h \
- parse-yacc.h \
- parse-lex.c \
- parse-yacc.c
-
- ########
-
- all : sources docs
- @
-
- ########
-
- sources :
- #
- # Create the cross reference files
- #
- @for file in $(SOURCE_FILES) ; do \
- echo Cross referencing $$file ; \
- ( cd .. ; cxref -xref -Odoc -Ncxref $$file ) ; \
- done
- #
- # Create the source files using cxref
- #
- @for file in $(SOURCE_FILES) ; do \
- echo Documenting $$file ; \
- ( cd .. ; cxref -warn-xref -xref -Odoc -Ncxref -latex -html $$file ) ; \
- rm -f $(DOCS) ; \
- done
- #
- # Create the index using cxref
- #
- @echo Indexing
- @( cd .. ; cxref -index-all -Odoc -Ncxref -latex -html )
- @rm -f $(DOCS)
-
- ########
-
- docs : $(DOCS)
- @
-
- ########
-
- cxref.dvi :
- #
- # Create the final output using latex
- #
- $(LATEX) cxref.tex
- #
- # Create the cross references using latex
- #
- $(LATEX) cxref.tex
-
- ########
-
- clean :
- -rm -f cxref.* *.tex *.dvi *.html
-
- ########
-