File: Makefile.am

package info (click to toggle)
html-xml-utils 6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,620 kB
  • sloc: ansic: 10,027; sh: 2,135; lex: 189; yacc: 125; perl: 123; makefile: 122
file content (144 lines) | stat: -rw-r--r-- 5,376 bytes parent folder | download
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
144
# Copyright © 1994-2004 World Wide Web Consortium
# See http://www.w3.org/Consortium/Legal/copyright-software
#
# Author: Bert Bos <bert@w3.org>
# Created: 31 Mar 2000
# Version: $Id: Makefile.am,v 1.54 2011/08/23 01:53:09 bbos Exp $

bin_PROGRAMS =		hxaddid hxcite hxcount hxextract hxclean\
			hxcopy hxprune hxnsxml\
			hxincl hxindex hxmkbib hxmultitoc hxname2id\
			hxnormalize hxnum hxpipe hxselect hxtoc hxuncdata\
			hxunent hxunpipe hxunxmlns hxwls hxxmlns hxref\
			xml2asc asc2xml

noinst_PROGRAMS =	cexport
bin_SCRIPTS = 		hxcite-mkbib hxprintlinks

man_MANS =		hxaddid.1 asc2xml.1 hxcite.1\
			hxcite-mkbib.1 hxcopy.1\
			hxcount.1 hxextract.1 hxclean.1\
			hxprune.1 hxincl.1 hxindex.1 hxmkbib.1 hxmultitoc.1\
			hxname2id.1 hxnormalize.1 hxnum.1 hxpipe.1\
			hxprintlinks.1 hxtoc.1 hxuncdata.1 hxunent.1\
			hxunpipe.1 hxunxmlns.1 hxwls.1 xml2asc.1 hxxmlns.1\
			hxref.1 hxselect.1 hxnsxml.1

EXTRA_DIST = 		$(man_MANS) dtd.hash unent.hash export.h\
			$(bin_SCRIPTS) $(BUILT_SOURCES) cexport.1\
			$(TESTS)

LDADD =			@LIBOBJS@ @LIBCURL@
AM_CPPFLAGS =		@LIBCURL_CPPFLAGS@
AM_YFLAGS =		-d
AM_LFLAGS =		@lex_opt_flags@

EXPORTS =		dict.e heap.e types.e headers.e connectsock.e\
			dtd.e errexit.e tree.e genid.e html.e url.e\
			openurl.e scan.e textwrap.e unent.e class.e\
			selector.e hash.e fopencookie.e

BUILT_SOURCES =		$(EXPORTS) scan.c html.c html.h dtd.c unent.c

asc2xml_SOURCES =	asc2xml.c
hxaddid_SOURCES =	hxaddid.c html.y scan.l dtd.c openurl.c errexit.c\
			url.c connectsock.c heap.c tree.c types.c genid.c\
			class.c hash.c headers.c dict.c fopencookie.c
cexport_SOURCES =	cexport.c
hxcite_SOURCES =	heap.c errexit.c hxcite.c
hxcount_SOURCES =	hxcount.c html.y scan.l types.c errexit.c heap.c\
			openurl.c url.c	connectsock.c headers.c dict.c\
			fopencookie.c
hxextract_SOURCES =	hxextract.c html.y scan.l openurl.c url.c\
			connectsock.c heap.c errexit.c class.c headers.c\
			dict.c types.c fopencookie.c
hxclean_SOURCES =	hxclean.c html.y tree.c types.c heap.c dtd.c\
			scan.l errexit.c
hxprune_SOURCES =	hxprune.c tree.c scan.l html.y errexit.c dtd.c\
			heap.c types.c openurl.c url.c connectsock.c class.c\
			headers.c dict.c fopencookie.c
hxincl_SOURCES =	hxincl.c scan.l html.y openurl.c url.c heap.c\
			errexit.c connectsock.c types.c headers.c dict.c\
			fopencookie.c
hxindex_SOURCES =	hxindex.c scan.l html.y openurl.c url.c heap.c class.c\
			errexit.c connectsock.c types.c tree.c genid.c dtd.c\
			headers.c dict.c fopencookie.c
hxmkbib_SOURCES =	errexit.c heap.c hxmkbib.c hash.c
hxmultitoc_SOURCES =	hxmultitoc.c html.y scan.l openurl.c url.c\
			connectsock.c heap.c errexit.c class.c headers.c\
			dict.c types.c fopencookie.c
hxnormalize_SOURCES =	hxnormalize.c html.y scan.l openurl.c url.c\
			tree.c connectsock.c heap.c dtd.c types.c\
			textwrap.c errexit.c headers.c dict.c fopencookie.c
hxnum_SOURCES =		hxnum.c html.y scan.l openurl.c url.c errexit.c\
			heap.c connectsock.c headers.c dict.c types.c class.c\
			fopencookie.c
hxpipe_SOURCES =	hxpipe.c html.y scan.l types.c errexit.c heap.c\
			openurl.c url.c connectsock.c headers.c dict.c\
			fopencookie.c
hxselect_SOURCES =	hxselect.c types.c errexit.c heap.c html.y scan.l\
			selector.c
hxtoc_SOURCES =		html.y scan.l dtd.c openurl.c errexit.c url.c class.c\
			connectsock.c heap.c tree.c types.c genid.c hxtoc.c\
			hash.c headers.c dict.c fopencookie.c
hxuncdata_SOURCES =	hxuncdata.c
hxunent_SOURCES =	unent.c hxunentmain.c
hxunpipe_SOURCES =	hxunpipe.c heap.c errexit.c openurl.c url.c\
			connectsock.c headers.c dict.c types.c fopencookie.c
hxunxmlns_SOURCES =	hxunxmlns.c html.y scan.l openurl.c url.c\
			connectsock.c heap.c errexit.c types.c headers.c\
			dict.c fopencookie.c
hxwls_SOURCES =		hxwls.c html.y scan.l openurl.c url.c\
			connectsock.c heap.c errexit.c types.c headers.c\
			dict.c fopencookie.c
hxxmlns_SOURCES =	hxxmlns.c html.y scan.l openurl.c url.c\
			connectsock.c heap.c errexit.c types.c headers.c\
			dict.c fopencookie.c
xml2asc_SOURCES =	xml2asc.c
hxref_SOURCES =		html.y scan.l dtd.c openurl.c errexit.c url.c\
			connectsock.c heap.c tree.c types.c genid.c hxref.c\
			hash.c headers.c dict.c fopencookie.c
hxname2id_SOURCES =	html.y scan.l dtd.c openurl.c errexit.c url.c\
			connectsock.c heap.c tree.c types.c hxname2id.c\
			headers.c dict.c fopencookie.c
hxcopy_SOURCES =	html.y scan.l types.c url.c openurl.c errexit.c\
			dict.c headers.c heap.c connectsock.c hxcopy.c\
			fopencookie.c
hxnsxml_SOURCES =	hxnsxml.c html.y scan.l types.c errexit.c heap.c\
			openurl.c url.c connectsock.c headers.c dict.c\
			fopencookie.c

HTML_MANS =		$(man_MANS:.1=.html)
CLEANFILES =		$(HTML_MANS)

SUFFIX =		.c:sC .l:sC .y:sC .e:h .h:h
SUFFIXES =		.1 .e .html

$(EXPORTS): cexport

.c.e:
	$(top_builddir)/cexport -I. -I$(srcdir) $(CPPFLAGS) -c "@CPP@" <$< >$@

.1.html:
	man2html -r $< | sed -e '1,/^$$/d' >$@

dtd.c: dtd.hash
	gperf -a -c -C -o -t -p -T -k '1,2,$$' -N lookup_element $< >$@

unent.c: unent.hash
	gperf -a -c -C -o -t -p -k '1,2,$$' -D -N lookup_entity $< >$@

# html.h: html.c
scan.o: html.h html.e scan.c

sel.tab.c sel.tab.h: sel.y
	bison -p sel_ -d -v sel.y

Overview.html: $(HTML_MANS)
	echo "<title>Manual pages</title><ul>" >$@
	for f in $(HTML_MANS); do\
	 echo "<li><a href=\""$$f"\">"`basename $$f .html`"</a>" >>$@;\
	done
	echo "</ul>" >>$@

TESTS = $(wildcard $(top_srcdir)/tests/*.sh)