File: Makefile.am

package info (click to toggle)
gsasl 2.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,604 kB
  • sloc: ansic: 16,551; sh: 1,739; makefile: 677; xml: 301; php: 172; perl: 4
file content (202 lines) | stat: -rw-r--r-- 7,050 bytes parent folder | download | duplicates (2)
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# Copyright (C) 2002-2025 Simon Josefsson
#
# This file is part of GNU SASL.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

SUBDIRS = cyclo
if ENABLE_GTK_DOC
SUBDIRS += reference
endif

EXTRA_DIST = gdoc \
	gsasl-controlflow.dia gsasl-controlflow2.dia gsasl-abstraction.dia \
	doxygen/Doxyfile.in doxygen/gdoc2doxygen

.dia.png:
	$(DIA) --export=$@ $<

.dia.eps:
	$(DIA) --export=$@ $<

.eps.pdf:
	$(EPSTOPDF) $<

info_TEXINFOS = gsasl.texi
gsasl_TEXINFOS = fdl-1.3.texi $(gdoc_TEXINFOS) \
	gsasl-controlflow.eps gsasl-controlflow.png gsasl-controlflow.pdf \
	gsasl-controlflow2.eps gsasl-controlflow2.png gsasl-controlflow2.pdf \
	gsasl-abstraction.eps gsasl-abstraction.png gsasl-abstraction.pdf \
	gsasl-api-error-labels.texi

AM_CPPFLAGS = -I$(top_builddir)/lib/src -I$(top_srcdir)/lib/src
EXTRA_PROGRAMS = print-errors
print_errors_LDADD = ../lib/src/libgsasl.la

gsasl-api-error-labels.texi: $(top_srcdir)/lib/src/error.c $(srcdir)/print-errors.c
	$(MAKE) $(builddir)/print-errors$(EXEEXT)
	$(builddir)/print-errors$(EXEEXT) > $@.new
	mv $@.new $@

AM_MAKEINFOFLAGS = -I $(top_srcdir)/examples \
	-I $(top_srcdir)/doc -I $(top_builddir)/doc
TEXI2DVI = texi2dvi $(AM_MAKEINFOFLAGS)
AM_MAKEINFOHTMLFLAGS = --no-split $(AM_MAKEINFOFLAGS)

dist_man_MANS = gsasl.1 $(gdoc_MANS)
MAINTAINERCLEANFILES = $(dist_man_MANS)

gsasl.1: $(top_srcdir)/src/gsasl.c $(top_srcdir)/src/gsasl.ggo \
		$(top_srcdir)/.version
	$(AM_V_GEN)$(HELP2MAN) \
		--name="SASL library command line interface" \
		--output=$@ $(top_builddir)/src/gsasl$(EXEEXT)

gdoc_MANS =
gdoc_MANS += man/gsasl_base64_to.3
gdoc_MANS += man/gsasl_base64_from.3
gdoc_MANS += man/gsasl_hex_to.3
gdoc_MANS += man/gsasl_hex_from.3
gdoc_MANS += man/gsasl_callback_set.3
gdoc_MANS += man/gsasl_callback.3
gdoc_MANS += man/gsasl_callback_hook_set.3
gdoc_MANS += man/gsasl_callback_hook_get.3
gdoc_MANS += man/gsasl_session_hook_set.3
gdoc_MANS += man/gsasl_session_hook_get.3
gdoc_MANS += man/gsasl_nonce.3
gdoc_MANS += man/gsasl_random.3
gdoc_MANS += man/gsasl_hash_length.3
gdoc_MANS += man/gsasl_scram_secrets_from_salted_password.3
gdoc_MANS += man/gsasl_scram_secrets_from_password.3
gdoc_MANS += man/gsasl_done.3
gdoc_MANS += man/gsasl_strerror.3
gdoc_MANS += man/gsasl_strerror_name.3
gdoc_MANS += man/gsasl_free.3
gdoc_MANS += man/gsasl_init.3
gdoc_MANS += man/gsasl_client_mechlist.3
gdoc_MANS += man/gsasl_server_mechlist.3
gdoc_MANS += man/gsasl_simple_getpass.3
gdoc_MANS += man/gsasl_mechanism_name.3
gdoc_MANS += man/gsasl_property_free.3
gdoc_MANS += man/gsasl_property_set.3
gdoc_MANS += man/gsasl_property_set_raw.3
gdoc_MANS += man/gsasl_property_fast.3
gdoc_MANS += man/gsasl_property_get.3
gdoc_MANS += man/gsasl_register.3
gdoc_MANS += man/gsasl_saslprep.3
gdoc_MANS += man/gsasl_mechanism_name_p.3
gdoc_MANS += man/gsasl_client_suggest_mechanism.3
gdoc_MANS += man/gsasl_client_support_p.3
gdoc_MANS += man/gsasl_server_support_p.3
gdoc_MANS += man/gsasl_check_version.3
gdoc_MANS += man/gsasl_encode.3
gdoc_MANS += man/gsasl_decode.3
gdoc_MANS += man/gsasl_finish.3
gdoc_MANS += man/gsasl_client_start.3
gdoc_MANS += man/gsasl_server_start.3
gdoc_MANS += man/gsasl_step.3
gdoc_MANS += man/gsasl_step64.3

gdoc_TEXINFOS =
gdoc_TEXINFOS += texi/gsasl_base64_to.texi
gdoc_TEXINFOS += texi/gsasl_base64_from.texi
gdoc_TEXINFOS += texi/gsasl_hex_to.texi
gdoc_TEXINFOS += texi/gsasl_hex_from.texi
gdoc_TEXINFOS += texi/gsasl_callback_set.texi
gdoc_TEXINFOS += texi/gsasl_callback.texi
gdoc_TEXINFOS += texi/gsasl_callback_hook_set.texi
gdoc_TEXINFOS += texi/gsasl_callback_hook_get.texi
gdoc_TEXINFOS += texi/gsasl_session_hook_set.texi
gdoc_TEXINFOS += texi/gsasl_session_hook_get.texi
gdoc_TEXINFOS += texi/gsasl_nonce.texi
gdoc_TEXINFOS += texi/gsasl_random.texi
gdoc_TEXINFOS += texi/gsasl_hash_length.texi
gdoc_TEXINFOS += texi/gsasl_scram_secrets_from_salted_password.texi
gdoc_TEXINFOS += texi/gsasl_scram_secrets_from_password.texi
gdoc_TEXINFOS += texi/gsasl_done.texi
gdoc_TEXINFOS += texi/gsasl_strerror.texi
gdoc_TEXINFOS += texi/gsasl_strerror_name.texi
gdoc_TEXINFOS += texi/gsasl_free.texi
gdoc_TEXINFOS += texi/gsasl_init.texi
gdoc_TEXINFOS += texi/gsasl_client_mechlist.texi
gdoc_TEXINFOS += texi/gsasl_server_mechlist.texi
gdoc_TEXINFOS += texi/gsasl_simple_getpass.texi
gdoc_TEXINFOS += texi/gsasl_mechanism_name.texi
gdoc_TEXINFOS += texi/gsasl_property_free.texi
gdoc_TEXINFOS += texi/gsasl_property_set.texi
gdoc_TEXINFOS += texi/gsasl_property_set_raw.texi
gdoc_TEXINFOS += texi/gsasl_property_fast.texi
gdoc_TEXINFOS += texi/gsasl_property_get.texi
gdoc_TEXINFOS += texi/gsasl_register.texi
gdoc_TEXINFOS += texi/gsasl_saslprep.texi
gdoc_TEXINFOS += texi/gsasl_mechanism_name_p.texi
gdoc_TEXINFOS += texi/gsasl_client_suggest_mechanism.texi
gdoc_TEXINFOS += texi/gsasl_client_support_p.texi
gdoc_TEXINFOS += texi/gsasl_server_support_p.texi
gdoc_TEXINFOS += texi/gsasl_check_version.texi
gdoc_TEXINFOS += texi/gsasl_encode.texi
gdoc_TEXINFOS += texi/gsasl_decode.texi
gdoc_TEXINFOS += texi/gsasl_finish.texi
gdoc_TEXINFOS += texi/gsasl_client_start.texi
gdoc_TEXINFOS += texi/gsasl_server_start.texi
gdoc_TEXINFOS += texi/gsasl_step.texi
gdoc_TEXINFOS += texi/gsasl_step64.texi

BUILT_SOURCES = $(gdoc_MANS) $(gdoc_TEXINFOS)

GDOC_SRC = $(top_srcdir)/lib/src/*.c

.PHONY: compare-makefile

compare-makefile:
	$(AM_V_GEN) \
	MANS=""; \
	TEXINFOS=""; \
	FUNCS=`$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; \
	for i in $$FUNCS; do \
		MANS="$$MANS\ngdoc_MANS += man/$$i.3"; \
		TEXINFOS="$$TEXINFOS\ngdoc_TEXINFOS += texi/$$i.texi"; \
	done && \
	grep -v -e '^gdoc_MANS += ' -e '^gdoc_TEXINFOS += ' $(srcdir)/Makefile.am | \
		perl -p -e "s,^gdoc_MANS =,gdoc_MANS =$$MANS,;" | \
		perl -p -e "s,^gdoc_TEXINFOS =,gdoc_TEXINFOS =$$TEXINFOS,;" \
		> tmp-$@ && \
	diff -u $(srcdir)/Makefile.am tmp-$@ && \
	rm -f tmp-$@

EXTRA_DIST += stamp-gdoc

$(gdoc_MANS) $(gdoc_TEXINFOS): stamp-gdoc

clean-local:
	-rm -f stamp-gdoc

stamp-gdoc: $(top_srcdir)/.version $(GDOC_SRC)
	$(AM_V_at)$(MKDIR_P) man texi
	$(AM_V_GEN)for i in `$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; do \
		$(srcdir)/gdoc -man \
			-bugsto $(PACKAGE_BUGREPORT) \
			-module $(PACKAGE) \
			-pkg-name "$(PACKAGE_NAME)" \
			-sourceversion $(VERSION) \
			-includefuncprefix \
			-seeinfo $(PACKAGE) \
			-verbatimcopying \
			-copyright "2002-2025 Simon Josefsson" \
			-function $$i \
			$(GDOC_SRC) > man/$$i.3 && \
		$(srcdir)/gdoc -texinfo -function $$i \
			$(GDOC_SRC) > texi/$$i.texi; \
	done
	$(AM_V_at)touch $@