File: Makefile.in

package info (click to toggle)
cxref 1.6a-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,124 kB
  • ctags: 1,502
  • sloc: ansic: 18,209; yacc: 2,086; sh: 917; lex: 460; perl: 452; makefile: 418; lisp: 256; cpp: 188; python: 80
file content (143 lines) | stat: -rw-r--r-- 3,101 bytes parent folder | download | duplicates (3)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# $Header: /home/amb/cxref/doc/RCS/Makefile.in 1.10 2005/02/01 18:45:07 amb Exp $
#
# C Cross Referencing & Documentation tool. Version 1.6a.
#
# Documentation Makefile.
#
# Written by Andrew M. Bishop
#
# This file Copyright 1995,96,99,2001,2004,05 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.
#

# autoconf things

srcdir=@srcdir@
VPATH=@srcdir@

# The installation locations

prefix=@prefix@
mandir=$(DESTDIR)@mandir@

# The installation program.

INSTALL=@INSTALL@

# The Perl program

PERL=@PERL@

# The LaTeX and dvips programs

LATEX=@LATEX@
DVIPS=@DVIPS@

########

SOURCE_FILES= \
cxref.c       \
cxref.h       \
autoconfig.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        \
html-style.c  \
rtf.c         \
sgml.c        \
parse-yacc.h  \
parse-lex.c   \
parse-yacc.c  \
parse-yy.h    \
slist.c       \
memory.h      \
memory.c      \
version.h

########

docs : faq-html readme examples

all : docs

########

install :
	[ -d $(mandir)/man1 ] || $(INSTALL) -d $(mandir)/man1
	$(INSTALL) -m 644 $(srcdir)/README.man $(mandir)/man1/cxref.1

########

clean :
	-rm -f *~ \
	example/*

####

distclean : clean
	-rm -f Makefile

########

faq-html : $(srcdir)/FAQ $(srcdir)/FAQ-html.pl
	[ "x$(PERL)" = "x" ] || $(PERL) $(srcdir)/FAQ-html.pl < $(srcdir)/FAQ > FAQ.html

########

readme : $(srcdir)/README.c
	[ -f README.c ] || cp $(srcdir)/README.c .
	../src/cxref -O. -NREADME-TMP -xref README.c
	../src/cxref -O. -NREADME-TMP -xref README.c -latex -html-src -rtf -sgml
	mv README.c.tex README_c.tex
	[ "x$(LATEX)" = "x" ] || $(LATEX) $(srcdir)/README.tex > /dev/null 2>&1
	[ "x$(LATEX)" = "x" ] || $(LATEX) $(srcdir)/README.tex
	[ "x$(DVIPS)" = "x" ] || $(DVIPS) README.dvi -o README.ps
	@rm -f README.aux README.log README.toc
	@rm -f README-TMP.*

########

examples :
	-@[ ! "$(srcdir)" = "." ] && \
	echo "CXREF: " && \
	echo "CXREF: Not creating example cross-reference of cxref source code." && \
	echo "CXREF: Compiling outside of source tree makes this too complex." && \
	echo "CXREF: "
#
# Create the cross reference files, output files and index
#
	@[ ! "$(srcdir)" = "." ] || \
	  ( cd ../src ; \
	  for file in $(SOURCE_FILES) ; do \
	     echo Cross referencing $$file ; \
	     ./cxref -xref -O../doc/example -Ncxref $$file; \
	  done ; \
	  for file in $(SOURCE_FILES) ; do \
	     echo Documenting $$file ; \
	     ./cxref -warn-xref -xref -O../doc/example -Ncxref -latex -html-src -rtf -sgml $$file; \
	  done ; \
	  echo Indexing ; \
	  ./cxref -index-all -O../doc/example -Ncxref -latex -html -rtf -sgml \
	  )
#
# Create the final output and cross references using latex
#
	@[ ! "$(srcdir)" = "." ] || [ "x$(LATEX)" = "x" ] || \
	  ( cd example ; \
	  echo Running LaTeX ; \
	  $(LATEX) cxref.tex > /dev/null 2>&1 ; \
	  $(LATEX) cxref.tex \
	  )

########