xref: /aosp_15_r20/external/flac/doc/Makefile.am (revision 600f14f40d737144c998e2ec7a483122d3776fbc)
1#  flac - Command-line FLAC encoder/decoder
2#  Copyright (C) 2002-2009  Josh Coalson
3#  Copyright (C) 2011-2023  Xiph.Org Foundation
4#
5#  This program is free software; you can redistribute it and/or
6#  modify it under the terms of the GNU General Public License
7#  as published by the Free Software Foundation; either version 2
8#  of the License, or (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU General Public License for more details.
14#
15#  You should have received a copy of the GNU General Public License along
16#  with this program; if not, write to the Free Software Foundation, Inc.,
17#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19SUBDIRS = . images
20
21if FLaC__HAS_DOXYGEN
22all-local: Doxyfile
23FLAC.tag: Doxyfile
24	doxygen Doxyfile
25	rm -rf api
26	mv doxytmp/html api
27	rm -rf doxytmp
28
29doc_DATA = \
30	FLAC.tag
31else
32if FLaC__HAS_PREBUILT_DOXYGEN
33doc_DATA = \
34	FLAC.tag
35endif
36endif
37
38EXTRA_DIST = Doxyfile.in doxygen.footer.html \
39	isoflac.txt $(doc_DATA) CMakeLists.txt \
40	api
41
42if FLaC__HAS_DOXYGEN
43# The install targets don't copy whole directories so we have to
44# handle 'api/' specially:
45install-data-local:
46	$(mkinstalldirs) $(DESTDIR)$(docdir)/api
47	(cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
48uninstall-local:
49	rm -rf $(DESTDIR)$(docdir)/api
50distclean-local:
51	rm -rf FLAC.tag api doxytmp
52endif
53
54if FLaC__HAS_PREBUILT_DOXYGEN
55# The install targets don't copy whole directories so we have to
56# handle 'api/' specially:
57install-data-local:
58	$(mkinstalldirs) $(DESTDIR)$(docdir)/api
59	(cd $(srcdir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
60uninstall-local:
61	rm -rf $(DESTDIR)$(docdir)/api
62endif
63