-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile.am
184 lines (137 loc) · 3.72 KB
/
Makefile.am
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
AUTOMAKE_OPTIONS = 1.12.1 foreign dist-bzip2 dist-zip dist-xz no-dist-gzip
# Silent rule support for AsciiDoc
V ?= $(AM_DEFAULT_VERBOSITY)
SILENT_RULE_A2X_MESSAGE_PLAIN = $(if $(subst 0,,$(V)),@:,@echo " A2X " $@)
HIDE_A2X = $(if $(subst 0,,$(V)),,@)
# Man page config
_MANUAL_PACKAGE = @PACKAGE_NAME@
_MANUAL_TITLE = @PACKAGE_NAME@ Manual
_MANUAL_VERSION = @PACKAGE_VERSION@
bin_PROGRAMS = rnv arx rvp xsdck
check_PROGRAMS = rnvtest
noinst_LIBRARIES = librnv1.a librnv2.a
TESTS = rnvtest
man1_MANS = \
man/arx.1 \
man/rnv.1 \
man/rvp.1 \
man/xsdck.1
librnv1_a_SOURCES = \
ary.h ary.c \
drv.h drv.c \
er.h er.c \
erbit.h \
ht.h ht.c \
m.h m.c \
rn.h rn.c \
rnc.h rnc.c \
rnd.h rnd.c \
rnl.h rnl.c \
rnv.h rnv.c \
rnx.h rnx.c \
rx.h rx.c \
s.h s.c \
sc.h sc.c \
u.h u.c \
xmlc.h xmlc.c \
xsd.h xsd.c \
xsd_tm.h xsd_tm.c
librnv2_a_SOURCES = \
dxl.h dxl.c \
dsl.h dsl.c
rnv_CPPFLAGS = -DRNV_VERSION=\"@VERSION@\"
rnv_LDADD = librnv1.a librnv2.a
rnv_SOURCES = \
ll.h \
xcl.c
arx_CPPFLAGS = -DARX_VERSION=\"@VERSION@\"
arx_LDADD = librnv1.a
arx_SOURCES = \
arx.c
rvp_CPPFLAGS = -DRVP_VERSION=\"@VERSION@\"
rvp_LDADD = librnv1.a librnv2.a
rvp_SOURCES = \
rvp.c
xsdck_LDADD = librnv1.a
xsdck_SOURCES = \
xsdck.c
rnvtest_LDADD = librnv1.a
rnvtest_SOURCES = \
test.c
man/%.1: man/%.1.txt man/asciidoc.conf Makefile.am configure.ac
@chmod u+w docbook-xsl.css 2>/dev/null || true
@$(MKDIR_P) man
$(SILENT_RULE_A2X_MESSAGE_PLAIN)
$(HIDE_A2X)a2x \
--conf-file=$(srcdir)/man/asciidoc.conf \
--attribute="manual_package=$(_MANUAL_PACKAGE)" \
--attribute="manual_title=$(_MANUAL_TITLE)" \
--attribute="manual_version=$(_MANUAL_VERSION)" \
--format=manpage -D man \
"$<"
clean-local:
rm -f "$(builddir)"/man/*.1
EXTRA_DIST = \
man/asciidoc.conf \
man/arx.1 \
man/arx.1.txt \
man/rnv.1 \
man/rnv.1.txt \
man/rvp.1 \
man/rvp.1.txt \
man/xsdck.1 \
man/xsdck.1.txt \
\
scm/dsl.scm \
scm/M.scm \
scm/rx.scm \
scm/rx-ranges.scm \
scm/s48.scm \
scm/spat.scm \
scm/u.scm \
scm/xml-ranges.scm \
\
tools/addr-spec.rnc \
tools/addr-spec-dsl.rnc \
tools/arx.conf \
tools/b64gen.c \
tools/gn.sed \
tools/pr.c \
tools/rgen.pl \
tools/rnv.vim \
tools/rvp.pl \
tools/rvp.py \
tools/xck \
tools/xsd2rnc.xsl \
tools/xslt-dsl.rnc \
\
readme.txt \
readme32.txt \
src.txt \
\
build_vms.com \
\
rx_cls_ranges.c \
rx_cls_u.c
## NOTE: The two source files above are included by rx.c
@PACKAGE_TARNAME@-@[email protected]: | distcheck
REQUIRED_DEBIAN_PACKAGES = asciidoc build-essential docbook-xml libxml2-utils xsltproc xz-utils zip \
devscripts fakeroot \
debhelper autotools-dev libexpat1-dev libscm-dev libncurses5-dev libreadline-dev libx11-dev
DEBIAN_PACKAGE_CHECK_TARGETS = $(patsubst %,%-installed,$(REQUIRED_DEBIAN_PACKAGES))
%-installed:
@P=`echo "$@" | sed 's,-installed,,'`; dpkg --status "$${P}" 2>/dev/null \
| fgrep -q installed \
|| { echo "ERROR: Package \"$${P}\" not installed, please install." 1>&2; exit 1 ; }
enforce-debian-package-requirements:
$(MAKE) -j$(words $(DEBIAN_PACKAGE_CHECK_TARGETS)) $(DEBIAN_PACKAGE_CHECK_TARGETS)
packages/debian/@PACKAGE_TARNAME@_@[email protected]:
$(LN_S) ../../@PACKAGE_TARNAME@-@[email protected] $@
deb: enforce-debian-package-requirements
$(MAKE) @PACKAGE_TARNAME@-@[email protected] packages/debian/@PACKAGE_TARNAME@_@[email protected]
$(RM) -R packages/debian/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
( cd packages/debian && tar xf @PACKAGE_TARNAME@_@[email protected] )
( cd packages/debian && cp -R rnv/debian @PACKAGE_TARNAME@-@PACKAGE_VERSION@/ )
( cd packages/debian/@PACKAGE_TARNAME@-@PACKAGE_VERSION@ && debuild -us -uc )
ls -l packages/debian/@PACKAGE_TARNAME@_*
.PHONY: deb