Makefile: add rules for documentation, simplify listing
authorPaul Brossier <piem@piem.org>
Sat, 10 Dec 2016 23:48:36 +0000 (00:48 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 10 Dec 2016 23:48:36 +0000 (00:48 +0100)
Makefile

index 3fbb4fb..afe00e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -69,21 +69,10 @@ install:
        $(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
 
@@ -240,9 +229,18 @@ test_python_only_clean: test_python_only \
        uninstall_python \
        check_clean_python
 
+sphinx: configure
+       $(WAFCMD) sphinx $(WAFOPTS)
+
+doxygen: configure
+       $(WAFCMD) doxygen $(WAFOPTS)
+
+manpages: configure
+       $(WAFCMD) manpages $(WAFOPTS)
+
+html: doxygen sphinx
 
-html:
-       cd doc && make html
+docs: html manpages
 
 dist: distclean expandwaf
        $(WAFCMD) dist