summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-09-18 20:09:48 +0200
committerGitHub <noreply@github.com>2022-09-18 20:09:48 +0200
commitb175971f8087d38c003bac67bbd2c535e807d415 (patch)
tree246a84418a6a22081334301d0372fe05c099e39a /doc
parentde058537cfb9e6a72dc664b31422ff3eff42bb7a (diff)
downloadflac-b175971f8087d38c003bac67bbd2c535e807d415.tar.gz
Include api dir in distribution
Also, don't create empty Doxygen tag and api directory
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am33
1 files changed, 27 insertions, 6 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index cb0df6f8..593d691b 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -25,17 +25,38 @@ FLAC.tag: Doxyfile
rm -rf api
mv doxytmp/html api
rm -rf doxytmp
-else
-FLAC.tag:
- touch $@
- mkdir -p api
-endif
doc_DATA = \
FLAC.tag
+else
+if FLaC__HAS_PREBUILT_DOXYGEN
+doc_DATA = \
+ FLAC.tag
+endif
+endif
EXTRA_DIST = Doxyfile.in doxygen.footer.html \
- isoflac.txt $(doc_DATA) CMakeLists.txt
+ isoflac.txt $(doc_DATA) CMakeLists.txt \
+ api
+if FLaC__HAS_DOXYGEN
+# The install targets don't copy whole directories so we have to
+# handle 'api/' specially:
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/api
+ (cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
+uninstall-local:
+ rm -rf $(DESTDIR)$(docdir)/api
distclean-local:
rm -rf FLAC.tag api doxytmp
+endif
+
+if FLaC__HAS_PREBUILT_DOXYGEN
+# The install targets don't copy whole directories so we have to
+# handle 'api/' specially:
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/api
+ (cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
+uninstall-local:
+ rm -rf $(DESTDIR)$(docdir)/api
+endif