pvq: use int beta in od_pow
[daala.git] / Makefile.am
1 # Libraries
2
3 # Provide the full test output for failed tests when using the parallel
4 # test suite (which is enabled by default with automake 1.13+).
5 export VERBOSE = yes
6
7 lib_LTLIBRARIES = src/libdaalabase.la src/libdaaladec.la src/libdaalaenc.la
8
9 AM_CPPFLAGS = -I$(srcdir)/include
10
11 noinst_HEADERS = \
12         src/block_size.h \
13         src/block_size_enc.h \
14         src/dct.h \
15         src/decint.h \
16         src/dering.h \
17         src/encint.h \
18         src/entcode.h \
19         src/entdec.h \
20         src/entenc.h \
21         src/filter.h \
22         src/generic_code.h \
23         src/internal.h \
24         src/intra.h \
25         src/logging.h \
26         src/mc.h \
27         src/mcenc.h \
28         src/odintrin.h \
29         src/partition.h \
30         src/pvq.h \
31         src/pvq_decoder.h \
32         src/pvq_encoder.h \
33         src/quantizer.h \
34         src/state.h \
35         src/tf.h \
36         src/util.h \
37         src/zigzag.h \
38         src/accounting.h \
39         src/x86/cpu.h \
40         src/x86/x86enc.h \
41         src/x86/x86dct.h \
42         src/x86/x86int.h \
43         src/arm/cpu.h \
44         src/arm/armint.h
45
46 src_dct_SOURCES = src/dct.c src/internal.c
47 if ENABLE_X86ASM
48 src_dct_SOURCES += src/x86/cpu.c
49 if ENABLE_SSE2_INTRINSICS
50 src_dct_SOURCES += src/x86/sse2dct.c
51 %sse2dct.o %sse2dct.lo: CFLAGS += -msse2
52 endif
53 if ENABLE_SSE41_INTRINSICS
54 src_dct_SOURCES += src/x86/sse41dct.c
55 %sse41dct.o %sse41dct.lo: CFLAGS += -msse4.1
56 endif
57 if ENABLE_AVX2_INTRINSICS
58 src_dct_SOURCES += src/x86/avx2dct.c
59 %avx2dct.o %avx2dct.lo: CFLAGS += -mavx2
60 endif
61 endif
62 if ENABLE_ARMASM
63 src_dct_SOURCES += src/arm/cpu.c
64 endif
65
66
67 src_libdaalabase_la_LIBADD = $(LIBM)
68 if DUMP_IMAGES
69   src_libdaalabase_la_LIBADD += $(PNG_LIBS)
70 endif
71 src_libdaalabase_la_LDFLAGS = -no-undefined \
72  -version-info @OD_LT_CURRENT@:@OD_LT_REVISION@:@OD_LT_AGE@
73 src_libdaalabase_la_LDFLAGS +=
74 src_libdaalabase_la_SOURCES = \
75         src/accounting.c \
76         src/entcode.c \
77         src/entdec.c \
78         src/dering.c \
79         src/filter.c \
80         src/generic_code.c \
81         src/generic_decoder.c \
82         src/info.c \
83         src/intra.c \
84         src/laplace_decoder.c \
85         src/laplace_tables.c \
86         src/logging.c \
87         src/mc.c \
88         src/partition.c \
89         src/pvq.c \
90         src/pvq_decoder.c \
91         src/quantizer.c \
92         src/state.c \
93         src/switch_table.c \
94         src/tf.c \
95         src/util.c \
96         src/zigzag4.c \
97         src/zigzag8.c \
98         src/zigzag16.c \
99         src/zigzag32.c \
100         src/zigzag64.c \
101         $(src_dct_SOURCES)
102 if ENABLE_X86ASM
103 src_libdaalabase_la_SOURCES += \
104         src/x86/sse2dering.c \
105         src/x86/sse2mc.c \
106         src/x86/sse2util.c \
107         src/x86/x86state.c
108 endif
109
110 src_libdaaladec_la_LIBADD = src/libdaalabase.la $(LIBM)
111 src_libdaaladec_la_LDFLAGS = -no-undefined \
112  -version-info @OD_LT_CURRENT@:@OD_LT_REVISION@:@OD_LT_AGE@
113 src_libdaaladec_la_SOURCES = \
114         src/decode.c \
115         src/infodec.c
116
117 src_libdaalaenc_la_LIBADD = src/libdaalabase.la $(LIBM)
118 if ENCODER_CHECK
119   src_libdaalaenc_la_LIBADD += src/libdaaladec.la
120 endif
121 src_libdaalaenc_la_LDFLAGS = -no-undefined \
122  -version-info @OD_LT_CURRENT@:@OD_LT_REVISION@:@OD_LT_AGE@
123 src_libdaalaenc_la_SOURCES = \
124         src/block_size_enc.c \
125         src/encode.c \
126         src/entenc.c \
127         src/generic_encoder.c \
128         src/infoenc.c \
129         src/laplace_encoder.c \
130         src/mcenc.c \
131         src/pvq_encoder.c \
132         src/rate.c
133 if ENABLE_X86ASM
134 src_libdaalaenc_la_SOURCES += \
135         src/x86/x86enc.c \
136         src/x86/x86mcenc.c
137 if ENABLE_SSE2_INTRINSICS
138 src_libdaalaenc_la_SOURCES += \
139         src/x86/sse2mcenc.c
140 %sse2mcenc.o %sse2mcenc.lo: CFLAGS += -msse2
141 endif
142 endif
143
144 # Example programs
145
146 noinst_PROGRAMS =
147
148 if ENABLE_EXAMPLES
149   noinst_PROGRAMS += \
150         examples/dump_video \
151         examples/encoder_example
152 endif
153
154
155 if ENABLE_PLAYER_EXAMPLE
156   noinst_PROGRAMS += examples/player_example
157 endif
158
159 if ENABLE_ANALYZER
160   noinst_PROGRAMS += examples/analyzer
161 endif
162
163 examples_dump_video_SOURCES = examples/dump_video.c
164 examples_dump_video_CFLAGS = $(OGG_CFLAGS)
165 examples_dump_video_LDADD = src/libdaalabase.la src/libdaaladec.la  $(OGG_LIBS)
166
167 examples_encoder_example_SOURCES = examples/encoder_example.c
168 examples_encoder_example_CFLAGS = $(OGG_CFLAGS)
169 examples_encoder_example_LDADD = src/libdaalabase.la src/libdaalaenc.la $(OGG_LIBS) $(LIBM)
170
171 if ENABLE_PLAYER_EXAMPLE
172 examples_player_example_SOURCES = examples/player_example.c
173 examples_player_example_CFLAGS = $(OGG_CFLAGS) $(SDL_CFLAGS)
174 examples_player_example_LDADD = src/libdaalabase.la src/libdaaladec.la $(OGG_LIBS) $(SDL_LIBS)
175 endif
176
177 if ENABLE_ANALYZER
178 examples_analyzer_SOURCES = examples/analyzer.cc
179 examples_analyzer_CXXFLAGS = $(OGG_CFLAGS) $(WX_CPPFLAGS)
180 examples_analyzer_LDADD = src/libdaalabase.la src/libdaaladec.la $(OGG_LIBS) $(WX_LIBS)
181 endif
182
183 # Includes
184
185 daalaincludedir = $(includedir)/daala
186 daalainclude_HEADERS = \
187         include/daala/codec.h \
188         include/daala/daaladec.h \
189         include/daala/daalaenc.h \
190         include/daala/daala_integer.h
191
192 # Tools
193
194 CLEANFILES =
195 EXTRA_PROGRAMS =
196
197 if ENABLE_TOOLS
198
199 tools_TARGETS = \
200         tools/png2y4m \
201         tools/y4m2png \
202         tools/dump_psnrhvs \
203         tools/block_size_analysis \
204         tools/to_monochrome \
205         tools/downsample \
206         tools/upsample \
207         tools/divu_const \
208         tools/trans \
209         tools/trans2d \
210         tools/trans_gain \
211         tools/gen_cdf \
212         tools/compute_basis \
213         tools/compute_haar_basis \
214         tools/cos_search \
215         tools/gen_laplace_tables \
216         tools/daalainfo \
217         tools/dump_ssim \
218         tools/dump_fastssim \
219         tools/bjontegaard \
220         tools/yuvjpeg \
221         tools/jpegyuv \
222         tools/yuv2yuv4mpeg \
223         tools/dump_psnr \
224         tools/vq_train \
225         tools/draw_zigzags \
226         tools/dump_msssim
227
228 noinst_HEADERS += \
229         tools/cholesky.h \
230         tools/int_search.h \
231         tools/kiss99.h \
232         tools/matidx.h \
233         tools/od_defs.h \
234         tools/od_filter.h \
235         tools/pythag.h \
236         tools/svd.h \
237         tools/trans_tools.h \
238         tools/vidinput.h
239
240 EXTRA_PROGRAMS += $(tools_TARGETS)
241 CLEANFILES += $(tools_TARGETS)
242
243 tools_daalainfo_SOURCES = tools/daalainfo.c
244 tools_daalainfo_CFLAGS = $(OGG_CFLAGS)
245 tools_daalainfo_LDADD = $(OGG_LIBS) src/libdaalabase.la src/libdaaladec.la
246
247 # png2y4m
248 tools_png2y4m_SOURCES = \
249         tools/kiss99.c \
250         tools/png2y4m.c
251 tools_png2y4m_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
252 tools_png2y4m_LDADD = $(OGG_LIBS) $(PNG_LIBS)
253
254 # y4m2png
255 tools_y4m2png_SOURCES = \
256         tools/vidinput.c \
257         tools/y4m_input.c \
258         tools/y4m2png.c
259 tools_y4m2png_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
260 tools_y4m2png_LDADD = $(OGG_LIBS) $(PNG_LIBS)
261
262 # dump_psnrhvs
263 tools_dump_psnrhvs_SOURCES = \
264         tools/vidinput.c \
265         tools/y4m_input.c \
266         $(src_dct_SOURCES) \
267         tools/dump_psnrhvs.c
268 tools_dump_psnrhvs_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
269 tools_dump_psnrhvs_LDADD = $(OGG_LIBS) $(LIBM)
270
271 # dump_ssim
272 tools_dump_ssim_SOURCES = \
273         tools/vidinput.c \
274         tools/y4m_input.c \
275         tools/dump_ssim.c
276 tools_dump_ssim_CFLAGS = $(OGG_CFLAGS)
277 tools_dump_ssim_LDADD = $(OGG_LIBS) $(LIBM)
278
279 # dump_msssim
280 tools_dump_msssim_SOURCES = \
281         tools/vidinput.c \
282         tools/y4m_input.c \
283         tools/dump_msssim.c
284 tools_dump_msssim_CFLAGS = $(OGG_CFLAGS)
285 tools_dump_msssim_LDADD = $(OGG_LIBS) $(LIBM)
286
287 # dump_fastssim
288 tools_dump_fastssim_SOURCES = \
289         tools/vidinput.c \
290         tools/y4m_input.c \
291         tools/dump_fastssim.c
292 tools_dump_fastssim_CFLAGS = $(OGG_CFLAGS)
293 tools_dump_fastssim_LDADD = $(OGG_LIBS) $(LIBM)
294
295 # dump_psnr
296 tools_dump_psnr_SOURCES = \
297         tools/vidinput.c \
298         tools/y4m_input.c \
299         tools/dump_psnr.c
300 tools_dump_psnr_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
301 tools_dump_psnr_LDADD = $(OGG_LIBS) $(LIBM)
302
303 # block_size_analysis
304 tools_block_size_analysis_SOURCES = \
305         tools/block_size_analysis.c \
306         src/block_size_enc.c \
307         tools/vidinput.c \
308         tools/y4m_input.c \
309         $(src_dct_SOURCES) \
310         src/logging.c \
311         src/entcode.c \
312         src/entenc.c \
313         src/filter.c \
314         src/switch_table.c
315 tools_block_size_analysis_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
316 tools_block_size_analysis_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
317
318 # to_monochrome
319 tools_to_monochrome_SOURCES = \
320         tools/vidinput.c \
321         tools/y4m_input.c \
322         tools/to_monochrome.c
323 tools_to_monochrome_CFLAGS = $(THEORA_CFLAGS) $(OGG_CFLAGS) $(PNG_CFLAGS)
324 tools_to_monochrome_LDADD = $(THEORA_LIBS) $(OGG_LIBS) $(PNG_LIBS)
325
326 # downsample
327 tools_downsample_SOURCES = \
328         tools/vidinput.c \
329         tools/y4m_input.c \
330         tools/downsample.c
331 tools_downsample_CFLAGS = $(THEORA_CFLAGS) $(OGG_CFLAGS) $(PNG_CFLAGS)
332 tools_downsample_LDADD = $(THEORA_LIBS) $(OGG_LIBS) $(PNG_LIBS)
333
334 # upsample
335 tools_upsample_SOURCES = \
336         $(src_dct_SOURCES) \
337         src/dering.c \
338         src/filter.c \
339         src/generic_code.c \
340         src/switch_table.c \
341         src/logging.c \
342         src/info.c \
343         src/mc.c \
344         src/partition.c \
345         src/pvq.c \
346         src/state.c \
347         src/util.c \
348         src/zigzag4.c \
349         src/zigzag8.c \
350         src/zigzag16.c \
351         src/zigzag32.c \
352         src/zigzag64.c \
353         tools/vidinput.c \
354         tools/y4m_input.c \
355         tools/upsample.c
356 if ENABLE_X86ASM
357 tools_upsample_SOURCES += \
358         src/x86/sse2dering.c \
359         src/x86/sse2mc.c \
360         src/x86/sse2util.c \
361         src/x86/x86state.c
362 endif
363 tools_upsample_CFLAGS = $(THEORA_CFLAGS) $(OGG_CFLAGS) $(PNG_CFLAGS)
364 tools_upsample_LDADD = $(THEORA_LIBS) $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
365
366 # divu_const
367 tools_divu_const_SOURCES = \
368         tools/divu_const.c
369 tools_divu_const_CFLAGS = $(OGG_CFLAGS)
370 tools_divu_const_LDADD = $(OGG_LIBS) $(LIBM)
371
372 # trans
373 tools_trans_SOURCES = \
374         tools/trans.c \
375         tools/vidinput.c \
376         tools/y4m_input.c \
377         tools/od_filter.c \
378         tools/trans_tools.c \
379         tools/int_search.c \
380         tools/trans_data.c \
381         tools/kiss99.c \
382         tools/svd.c \
383         tools/cholesky.c \
384         src/filter.c \
385         $(src_dct_SOURCES)
386 tools_trans_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS) $(OPENMP_CFLAGS)
387 tools_trans_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
388
389 # trans_gain
390 tools_trans_gain_SOURCES = \
391         tools/trans_gain.c \
392         tools/vidinput.c \
393         tools/y4m_input.c \
394         tools/od_filter.c \
395         tools/trans_tools.c \
396         src/filter.c \
397         $(src_dct_SOURCES)
398 tools_trans_gain_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS) $(OPENMP_CFLAGS)
399 tools_trans_gain_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
400
401 #trans2d
402 tools_trans2d_SOURCES = \
403         tools/trans2d.c \
404         tools/vidinput.c \
405         tools/y4m_input.c \
406         tools/od_filter.c \
407         tools/trans_tools.c \
408         tools/int_search.c \
409         tools/trans_data.c \
410         tools/kiss99.c \
411         tools/svd.c \
412         tools/cholesky.c \
413         src/filter.c \
414         $(src_dct_SOURCES)
415 tools_trans2d_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS) $(OPENMP_CFLAGS)
416 tools_trans2d_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
417
418 # gen_cdf
419 tools_gen_cdf_SOURCES = \
420         tools/gen_cdf.c
421 tools_gen_cdf_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
422 tools_gen_cdf_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
423
424 # compute_basis
425 tools_compute_basis_SOURCES = \
426         tools/compute_basis.c \
427         src/dct.c \
428         src/filter.c \
429         src/internal.c
430 tools_compute_basis_CFLAGS = $(OGG_CFLAGS)
431 tools_compute_basis_LDADD = $(OGG_LIBS) $(LIBM)
432
433 # compute_haar_basis
434 tools_compute_haar_basis_SOURCES = \
435         tools/compute_haar_basis.c \
436         src/dct.c \
437         src/filter.c \
438         src/internal.c
439 tools_compute_haar_basis_CFLAGS = $(OGG_CFLAGS)
440 tools_compute_haar_basis_LDADD = $(OGG_LIBS) $(LIBM)
441
442 # cos_search
443 tools_cos_search_SOURCES = \
444         tools/cos_search.c
445 tools_cos_search_LDADD = $(LIBM)
446
447 # gen_laplace_tables
448 tools_gen_laplace_tables_SOURCES = \
449         tools/gen_laplace_tables.c
450 tools_gen_laplace_tables_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
451 tools_gen_laplace_tables_LDADD = $(OGG_LIBS) $(PNG_LIBS) $(LIBM)
452
453 # bjontegaard
454 tools_bjontegaard_SOURCES = \
455         tools/bjontegaard.c \
456         tools/cholesky.c \
457         tools/qr.c \
458         tools/svd.c
459 tools_bjontegaard_CFLAGS =
460 tools_bjontegaard_LDADD = $(LIBM)
461
462 # yuvjpeg
463 tools_yuvjpeg_SOURCES = \
464         tools/yuvjpeg.c
465 tools_yuvjpeg_CFLAGS =
466 tools_yuvjpeg_LDADD = $(JPEG_LIBS)
467
468 # jpegyuv
469 tools_jpegyuv_SOURCES = \
470         tools/jpegyuv.c
471 tools_jpegyuv_CFLAGS =
472 tools_jpegyuv_LDADD = $(JPEG_LIBS)
473
474 # yuv2yuv4mpeg
475 tools_yuv2yuv4mpeg_SOURCES = \
476         tools/yuv2yuv4mpeg.c
477 tools_yuv2yuv4mpeg_CFLAGS =
478 tools_yuv2yuv4mpeg_LDADD =
479
480 # vq_train
481 tools_vq_train_SOURCES = \
482         tools/vq_train.c
483 tools_vq_train_CFLAGS = $(OPENMP_CFLAGS)
484 tools_vq_train_LDADD = $(LIBM)
485
486 # draw_zigzags
487 tools_draw_zigzags_SOURCES = \
488         tools/draw_zigzags.c \
489         src/zigzag4.c \
490         src/zigzag8.c \
491         src/zigzag16.c \
492         src/zigzag32.c \
493         src/zigzag64.c
494 tools_draw_zigzags_CFLAGS =
495 tools_draw_zigzags_LDADD =
496
497
498 endif # ENABLE_TOOLS
499
500 # Tests
501
502 if ENABLE_UNIT_TESTS
503 noinst_PROGRAMS += \
504         src/tests/dcttest \
505         src/tests/ectest \
506         src/tests/test_coef_coder \
507         src/tests/logging_test \
508         src/tests/test_divu_small \
509         src/tests/check_tests
510
511 TESTS = \
512         src/tests/dcttest \
513         src/tests/ectest \
514         src/tests/test_coef_coder \
515         src/tests/logging_test \
516         src/tests/test_divu_small \
517         src/tests/check_tests
518
519 src_tests_dcttest_SOURCES = $(src_dct_SOURCES) src/filter.c
520 src_tests_dcttest_CFLAGS = $(OGG_CFLAGS) \
521  -DOD_DCT_CHECK_OVERFLOW -DOD_DCT_TEST -DOD_ENABLE_ASSERTIONS
522 src_tests_dcttest_LDADD = $(LIBM)
523
524 src_tests_ectest_SOURCES = src/tests/ectest.c
525 src_tests_ectest_CFLAGS = $(OGG_CFLAGS)
526 src_tests_ectest_LDADD = \
527  src/libdaalaenc.la \
528  src/libdaalabase.la \
529  $(LIBM)
530
531 src_tests_test_coef_coder_SOURCES = src/tests/test_coef_coder.c
532 src_tests_test_coef_coder_CFLAGS = $(OGG_CFLAGS)
533 src_tests_test_coef_coder_LDADD = \
534  src/libdaalabase.la \
535  src/libdaaladec.la \
536  src/libdaalaenc.la \
537  $(OGG_LIBS) \
538  $(LIBM)
539
540 src_tests_logging_test_SOURCES = src/tests/logging_test.c
541 src_tests_logging_test_CFLAGS = $(OGG_CFLAGS)
542 src_tests_logging_test_LDADD = \
543  src/libdaalabase.la \
544  src/libdaalaenc.la \
545  $(OGG_LIBS)
546
547 src_tests_test_divu_small_SOURCES = src/tests/test_divu_small.c
548 src_tests_test_divu_small_CFLAGS = $(OGG_CFLAGS)
549 src_tests_test_divu_small_LDADD = \
550  src/libdaalabase.la \
551  $(OGG_LIBS)
552
553 src_tests_check_tests_SOURCES = \
554  src/tests/check_main.c \
555  src/tests/headerencode_test.c
556 src_tests_check_tests_CFLAGS = $(OGG_CFLAGS) $(CHECK_CFLAGS) -Wno-variadic-macros
557 src_tests_check_tests_LDADD = \
558  src/libdaalabase.la \
559  src/libdaaladec.la \
560  src/libdaalaenc.la \
561  $(OGG_LIBS) \
562  $(CHECK_LIBS) \
563  $(LIBM)
564
565 endif
566
567 SUBDIRS=doc
568
569 ACLOCAL_AMFLAGS = -I m4
570
571 AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)
572
573 dist_doc_DATA = COPYING AUTHORS
574
575 pkgconfigdir = $(libdir)/pkgconfig
576 pkgconfig_DATA = daalaenc.pc daaladec.pc
577
578 debug: DEBUG_OPTIONS = -DOD_ENABLE_ASSERTIONS -DOD_LOGGING_ENABLED
579 debug:
580         $(MAKE) CFLAGS="$(CFLAGS) -O0 -ggdb3 $(DEBUG_OPTIONS)" all
581
582 EXTRA_DIST = \
583         daalaenc.pc.in \
584         daaladec.pc.in \
585         daalaenc-uninstalled.pc.in \
586         daaladec-uninstalled.pc.in \
587         tools/unix/Makefile \
588         unix/Makefile
589
590 # Targets to build and install just the library without the docs
591 daala install-daala: NO_DOXYGEN = 1
592
593 daala: all
594 install-daala: install
595
596 if ENABLE_TOOLS
597 tools: $(tools_TARGETS)
598 else
599 tools:
600         @echo "error: Tools support not enabled. Try running 'configure --enable-tools'."
601 endif
602
603 # Or just the docs
604 docs: doc/doxygen-build.stamp
605
606 install-docs:
607         @if [ -z "$(NO_DOXYGEN)" ]; then \
608           ( cd doc && \
609             echo "Installing documentation in $(DESTDIR)$(docdir)"; \
610             $(INSTALL) -d $(DESTDIR)$(docdir)/html/search; \
611             for f in `find html -type f \! -name "installdox"` ; do \
612               $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f;     \
613             done ) \
614         fi
615
616 doc/doxygen-build.stamp: doc/Doxyfile $(daalainclude_HEADERS)
617         @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && doxygen && touch $(@F) )
618
619 if HAVE_DOXYGEN
620
621 # Or everything (by default)
622 all-local: docs
623
624 install-data-local: install-docs
625
626 clean-local:
627         $(RM) -r doc/html
628         $(RM) -r doc/latex
629         $(RM) -r doc/man
630         $(RM) doc/doxygen-build.stamp
631         $(RM) doc/doxygen_sqlite3.db
632
633 uninstall-local:
634         $(RM) -r $(DESTDIR)$(docdir)/html
635
636 endif
637
638 # We check this every time make is run, with configure.ac being touched to
639 # trigger an update of the build system files if update_version changes the
640 # current PACKAGE_VERSION (or if package_version was modified manually by a
641 # user with either AUTO_UPDATE=no or no update_version script present - the
642 # latter being the normal case for tarball releases).
643 #
644 # We can't just add the package_version file to CONFIGURE_DEPENDENCIES since
645 # simply running autoconf will not actually regenerate configure for us when
646 # the content of that file changes (due to autoconf dependency checking not
647 # knowing about that without us creating yet another file for it to include).
648 #
649 # The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for
650 # makes that don't support it.  The only loss of functionality is not forcing
651 # an update of package_version for `make dist` if AUTO_UPDATE=no, but that is
652 # unlikely to be a real problem for any real user.
653 $(top_srcdir)/configure.ac: force
654         @case "$(MAKECMDGOALS)" in \
655             dist-hook)                             exit 0       ;; \
656             dist-* | dist | distcheck | distclean) _arg=release ;; \
657         esac; \
658         if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \
659             if [ ! -e $(top_srcdir)/package_version ]; then \
660                 echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \
661             fi; \
662             . $(top_srcdir)/package_version || exit 1; \
663             [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \
664         fi; \
665         touch $@
666
667 force:
668
669 # Create a minimal package_version file when make dist is run.
670 dist-hook:
671         echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version
672
673 .PHONY: daala install-daala docs install-docs figures tools