ref: f1fc2168c0075497d39b48b1c88a89c5115ec64d
parent: 5f9729dfd7c720cd23f1dae11ee0983e9134aeba
author: Paul Brossier <piem@piem.org>
date: Sat Dec 10 19:48:36 EST 2016
Makefile: add rules for documentation, simplify listing
--- a/Makefile
+++ b/Makefile
@@ -69,22 +69,11 @@
$(WAFCMD) install $(WAFOPTS)
list_installed:
- find $(DESTDIR) -ls | \
- sed 's|$(DESTDIR)|/«destdir»|'
+ find $(DESTDIR) -ls | sed 's|$(DESTDIR)|/«destdir»|'
list_installed_python:
- ( find $(PYDESTDIR) -ls || make list_installed_python_package ) | \
- sed 's|$(PYDESTDIR)|/«pydestdir»|'
-
-list_installed_python_package:
pip show -f aubio
- PACKAGE_LOCATION=$(shell pip show -f aubio | grep ^Location | cut -d \ -f 2) \
- make list_installed_python_package_content
-list_installed_python_package_content:
- ( [ -d $(PACKAGE_LOCATION) ] && find $(PACKAGE_LOCATION) -ls ) || \
- unzip -l $(PACKAGE_LOCATION)
-
list_all_installed: list_installed list_installed_python
uninstall:
@@ -240,9 +229,18 @@
uninstall_python \
check_clean_python
+sphinx: configure
+ $(WAFCMD) sphinx $(WAFOPTS)
-html:
- cd doc && make html
+doxygen: configure
+ $(WAFCMD) doxygen $(WAFOPTS)
+
+manpages: configure
+ $(WAFCMD) manpages $(WAFOPTS)
+
+html: doxygen sphinx
+
+docs: html manpages
dist: distclean expandwaf
$(WAFCMD) dist