File: Makefile.am

package info (click to toggle)
dateutils 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,924 kB
  • sloc: ansic: 22,097; makefile: 1,666; yacc: 198; sh: 168; lex: 108
file content (359 lines) | stat: -rw-r--r-- 11,486 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# Help the Developers and yourself.  Just use the C locale and settings
# for the compilation. They can still be overriden by make LANG=<whatever>
# but that is general a not very good idea
LANG=C
LC_ALL=C

include $(top_builddir)/version.mk

BUILT_SOURCES =
EXTRA_DIST = $(BUILT_SOURCES)
SUFFIXES =

info_TEXINFOS = dateutils.texi
dateutils_TEXINFOS =
dateutils_TEXINFOS += $(built_texis)
dateutils_TEXINFOS += format.texi
dateutils_TEXINFOS += format-ddiff.texi
dateutils_TEXINFOS += units.texi
dateutils_TEXINFOS += zone.texi
dateutils_TEXINFOS += locale.texi

man1_MANS =
man1_MANS += $(built_mans)
man1_MANS += dateutils.man

dateutils_EXAMPLES =
dateutils_H2M_EX =

dconv_EXAMPLES =
dconv_EXAMPLES += $(top_srcdir)/test/dconv.001.clit
dconv_EXAMPLES += $(top_srcdir)/test/dconv.002.clit
dconv_EXAMPLES += $(top_srcdir)/test/dconv.003.clit
dconv_EXAMPLES += $(top_srcdir)/test/dconv.004.clit
dconv_EXAMPLES += $(top_srcdir)/test/tconv.001.clit
dconv_EXAMPLES += $(top_srcdir)/test/tconv.002.clit
dconv_EXAMPLES += $(top_srcdir)/test/dtconv.001.clit
dconv_EXAMPLES += $(top_srcdir)/test/dtconv.002.clit
dconv_EXAMPLES += $(top_srcdir)/test/dtconv.011.clit
dconv_EXAMPLES += $(top_srcdir)/test/dtconv.012.clit
dconv_EXAMPLES += $(top_srcdir)/test/dtconv.014.clit
dateutils_EXAMPLES += $(dconv_EXAMPLES)
dateutils_H2M_EX += dconv.h2m

dseq_EXAMPLES =
dseq_EXAMPLES += $(top_srcdir)/test/dseq.01.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.02.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.03.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.04.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.05.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.06.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.07.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.08.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.09.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.10.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.11.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.12.clit
dseq_EXAMPLES += $(top_srcdir)/test/dseq.13.clit
dseq_EXAMPLES += $(top_srcdir)/test/tseq.01.clit
dseq_EXAMPLES += $(top_srcdir)/test/tseq.02.clit
dseq_EXAMPLES += $(top_srcdir)/test/tseq.03.clit
dseq_EXAMPLES += $(top_srcdir)/test/tseq.04.clit
dateutils_EXAMPLES += $(dseq_EXAMPLES)
dateutils_H2M_EX += dseq.h2m

dadd_EXAMPLES =
dadd_EXAMPLES += $(top_srcdir)/test/dadd.001.clit
dadd_EXAMPLES += $(top_srcdir)/test/dadd.002.clit
dadd_EXAMPLES += $(top_srcdir)/test/dadd.003.clit
dadd_EXAMPLES += $(top_srcdir)/test/dadd.004.clit
dadd_EXAMPLES += $(top_srcdir)/test/tadd.001.clit
dadd_EXAMPLES += $(top_srcdir)/test/tadd.002.clit
dadd_EXAMPLES += $(top_srcdir)/test/tadd.003.clit
dateutils_EXAMPLES += $(dadd_EXAMPLES)
dateutils_H2M_EX += dadd.h2m

dtest_EXAMPLES =
dtest_EXAMPLES += $(top_srcdir)/test/dtest.001.clit
dtest_EXAMPLES += $(top_srcdir)/test/dtest.002.clit
dtest_EXAMPLES += $(top_srcdir)/test/dtest.003.clit
dtest_EXAMPLES += $(top_srcdir)/test/dtest.004.clit
dtest_EXAMPLES += $(top_srcdir)/test/dtest.005.clit
dtest_EXAMPLES += $(top_srcdir)/test/ttest.001.clit
dtest_EXAMPLES += $(top_srcdir)/test/ttest.002.clit
dtest_EXAMPLES += $(top_srcdir)/test/ttest.003.clit
dtest_EXAMPLES += $(top_srcdir)/test/ttest.004.clit
dtest_EXAMPLES += $(top_srcdir)/test/dttest.010.clit
dtest_EXAMPLES += $(top_srcdir)/test/dttest.002.clit
dtest_EXAMPLES += $(top_srcdir)/test/dttest.003.clit
dtest_EXAMPLES += $(top_srcdir)/test/dttest.004.clit
dtest_EXAMPLES += $(top_srcdir)/test/dttest.005.clit
dateutils_EXAMPLES += $(dtest_EXAMPLES)
dateutils_H2M_EX += dtest.h2m

ddiff_EXAMPLES =
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.001.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.002.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.003.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.004.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.005.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.006.clit
ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.008.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.001.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.002.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.003.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.008.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.006.clit
ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.007.clit
ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.001.clit
ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.003.clit
ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.011.clit
ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.012.clit
dateutils_EXAMPLES += $(ddiff_EXAMPLES)
dateutils_H2M_EX += ddiff.h2m

dgrep_EXAMPLES =
dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.001.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.002.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.006.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.007.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.008.clit
dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.001.clit
dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.002.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.001.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.002.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.005.clit
dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.006.clit
dateutils_EXAMPLES += $(dgrep_EXAMPLES)
dateutils_H2M_EX += dgrep.h2m

dround_EXAMPLES =
dround_EXAMPLES += $(top_srcdir)/test/dround.002.clit
dround_EXAMPLES += $(top_srcdir)/test/dround.003.clit
dround_EXAMPLES += $(top_srcdir)/test/tround.003.clit
dround_EXAMPLES += $(top_srcdir)/test/tround.002.clit
dateutils_EXAMPLES += $(dround_EXAMPLES)
dateutils_H2M_EX += dround.h2m

dzone_EXAMPLES =
dzone_EXAMPLES += $(top_srcdir)/test/dzone.001.clit
dzone_EXAMPLES += $(top_srcdir)/test/dzone.002.clit
dzone_EXAMPLES += $(top_srcdir)/test/dzone.003.clit
dzone_EXAMPLES += $(top_srcdir)/test/dzone.004.clit
dateutils_EXAMPLES += $(dzone_EXAMPLES)
dateutils_H2M_EX += dzone.h2m

dsort_EXAMPLES =
dsort_EXAMPLES += $(top_srcdir)/test/dsort.001.clit
dsort_EXAMPLES += $(top_srcdir)/test/dsort.002.clit
dsort_EXAMPLES += $(top_srcdir)/test/dsort.003.clit
dsort_EXAMPLES += $(top_srcdir)/test/dsort.004.clit
dsort_EXAMPLES += $(top_srcdir)/test/dsort.005.clit
dsort_EXAMPLES += $(top_srcdir)/test/dsort.006.clit
dateutils_EXAMPLES += $(dsort_EXAMPLES)
dateutils_H2M_EX += dsort.h2m

if HAVE_STRPTIME
strptime_EXAMPLES =
strptime_EXAMPLES += $(top_srcdir)/test/strptime.001.clit
strptime_EXAMPLES += $(top_srcdir)/test/strptime.002.clit
dateutils_EXAMPLES += $(strptime_EXAMPLES)
dateutils_H2M_EX += strptime.h2m
endif  HAVE_STRPTIME

EXTRA_DIST += author.h2m
BUILT_SOURCES += format.th2m
BUILT_SOURCES += format-ddiff.th2m
BUILT_SOURCES += units.th2m
BUILT_SOURCES += $(dateutils_H2M_EX)
BUILT_SOURCES += $(built_texis)
BUILT_SOURCES += $(built_mans)


dist_noinst_SCRIPTS = gentexi.sh genh2m.sh texi2h2m.sh

built_texis =
built_texis += strptime.texi
BUILT_SOURCES += dadd.texi
BUILT_SOURCES += dconv.texi
BUILT_SOURCES += ddiff.texi
BUILT_SOURCES += dgrep.texi
BUILT_SOURCES += dround.texi
BUILT_SOURCES += dseq.texi
BUILT_SOURCES += dsort.texi
BUILT_SOURCES += dtest.texi
BUILT_SOURCES += dzone.texi
built_texis += dateadd.texi
built_texis += dateconv.texi
built_texis += datediff.texi
built_texis += dategrep.texi
built_texis += dateround.texi
built_texis += dateseq.texi
built_texis += datesort.texi
built_texis += datetest.texi
built_texis += datezone.texi

built_mans =
if HAVE_STRPTIME
built_mans += strptime.man
endif  HAVE_STRPTIME

if WITH_OLD_NAMES
built_mans += dadd.manu
built_mans += dconv.man
built_mans += ddiff.mand
built_mans += dgrep.man
built_mans += dround.manu
built_mans += dseq.manu
built_mans += dsort.man
built_mans += dtest.man
built_mans += dzone.man
else  !WITH_OLD_NAMES
built_mans += dateadd.manu
built_mans += dateconv.man
built_mans += datediff.mand
built_mans += dategrep.man
built_mans += dateround.manu
built_mans += dateseq.manu
built_mans += datesort.man
built_mans += datetest.man
built_mans += datezone.man
endif  !WITH_OLD_NAMES

if WITH_OLD_LINKS
## install them as files, not links
built_mans += dadd.manu
built_mans += dconv.man
built_mans += ddiff.mand
built_mans += dgrep.man
built_mans += dround.manu
built_mans += dseq.manu
built_mans += dsort.man
built_mans += dtest.man
built_mans += dzone.man
endif  WITH_OLD_LINKS

EXTRA_DIST += $(man1_MANS)
EXTRA_DIST += $(dateutils_TEXINFOS)

## just to aid the suffix rules
strptime.man: strptime.h2m
dadd.manu: dadd.h2m
dconv.man: dconv.h2m
ddiff.mand: ddiff.h2m
dgrep.man: dgrep.h2m
dround.manu: dround.h2m
dseq.manu: dseq.h2m
dsort.man: dsort.h2m
dtest.man: dtest.h2m
dzone.man: dzone.h2m

## new file names
TRAFO = sed 's/dadd/dateadd/g; s/dconv/dateconv/g; s/ddiff/datediff/g; s/dgrep/dategrep/g; s/dround/dateround/g; s/dseq/dateseq/g; s/dsort/datesort/g; s/dtest/datetest/g; s/dzone/datezone/g'

dateadd.manu: dadd.manu
	$(TRAFO) < $< > $@
dateconv.man: dconv.man
	$(TRAFO) < $< > $@
datediff.mand: ddiff.mand
	$(TRAFO) < $< > $@
dategrep.man: dgrep.man
	$(TRAFO) < $< > $@
dateround.manu: dround.manu
	$(TRAFO) < $< > $@
dateseq.manu: dseq.manu
	$(TRAFO) < $< > $@
datesort.man: dsort.man
	$(TRAFO) < $< > $@
datetest.man: dtest.man
	$(TRAFO) < $< > $@
datezone.man: dzone.man
	$(TRAFO) < $< > $@

dateadd.texi: dadd.texi
	$(TRAFO) < $< > $@
dateconv.texi: dconv.texi
	$(TRAFO) < $< > $@
datediff.texi: ddiff.texi
	$(TRAFO) < $< > $@
dategrep.texi: dgrep.texi
	$(TRAFO) < $< > $@
dateround.texi: dround.texi
	$(TRAFO) < $< > $@
dateseq.texi: dseq.texi
	$(TRAFO) < $< > $@
datesort.texi: dsort.texi
	$(TRAFO) < $< > $@
datetest.texi: dtest.texi
	$(TRAFO) < $< > $@
datezone.texi: dzone.texi
	$(TRAFO) < $< > $@


SUFFIXES += .yuck
VPATH += @top_srcdir@/src

SUFFIXES += .man
.yuck.man:
	$(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
		yuck$(EXEEXT) genman \
			--package "$(PACKAGE_NAME)" \
			--info-page \
			-i "$(builddir)/format.th2m" \
			-i "$(builddir)/$*.h2m" \
			-i "$(srcdir)/author.h2m" \
			-o $@ --version-file "$(top_builddir)/.version" $<

## generic rule with format-ddiff instead of format
SUFFIXES += .mand
.yuck.mand:
	$(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
		yuck$(EXEEXT) genman \
			--package "$(PACKAGE_NAME)" \
			--info-page \
			-i "$(builddir)/format.th2m" \
			-i "$(builddir)/format-ddiff.th2m" \
			-i "$(builddir)/$*.h2m" \
			-i "$(srcdir)/author.h2m" \
			-o $@ --version-file "$(top_builddir)/.version" $<

## generic rule for man pages with units section
SUFFIXES += .manu
.yuck.manu:
	$(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
		yuck$(EXEEXT) genman \
			--package "$(PACKAGE_NAME)" \
			--info-page \
			-i "$(builddir)/format.th2m" \
			-i "$(builddir)/units.th2m" \
			-i "$(builddir)/$*.h2m" \
			-i "$(srcdir)/author.h2m" \
			-o $@ --version-file "$(top_builddir)/.version" $<

my_bld_h2m = $(__bld_h2m_$(V))
__bld_h2m_ = $(__bld_h2m_$(AM_DEFAULT_VERBOSITY))
__bld_h2m_0 = @echo "  GENH2M  " $*;
SUFFIXES += .h2m
.yuck.h2m: $(dateutils_EXAMPLES)
	$(my_bld_h2m) ${SHELL} \
		$(srcdir)/genh2m.sh $(top_builddir)/src/$* \
		$($*_EXAMPLES) > $@ || rm -f -- $@

my_bld_texi = $(__bld_texi_$(V))
__bld_texi_ = $(__bld_texi_$(AM_DEFAULT_VERBOSITY))
__bld_texi_0 = @echo "  GENTEXI " $*;
SUFFIXES += .texi
.yuck.texi: $(dateutils_EXAMPLES) dateutils.texi
	$(my_bld_texi) ${SHELL} \
		$(srcdir)/gentexi.sh $(top_builddir)/src/$* \
		$($*_EXAMPLES) > $@ || test "$$?" = "2" || rm -f -- $@

my_bld_th2m = $(__bld_th2m_$(V))
__bld_th2m_ = $(__bld_th2m_$(AM_DEFAULT_VERBOSITY))
__bld_th2m_0 = @echo "  GENTH2M " $*;
SUFFIXES += .th2m
.texi.th2m:
	$(my_bld_th2m) ${SHELL} \
		$(srcdir)/texi2h2m.sh $< > $@ || rm -f -- $@

## Makefile.am ends here