Add a "make docs" target
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 17 Feb 2015 21:38:34 +0000 (15:38 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 17 Feb 2015 21:38:49 +0000 (15:38 -0600)
Makefile.in

index c4da49869fa7b87678c7cfcc85e8fc5c71a86ef5..a173bf865875ad2f69f25669819f1d68215cbef6 100644 (file)
@@ -80,11 +80,19 @@ endif
 
 .PHONY: all install uninstall distclean info install-html html \
 install-pdf pdf install-dvi dvi install-ps ps clean dist check \
-installdirs i18n virtualenv
+installdirs i18n virtualenv docs
+
 # update postgresql
 
 all: develop
 
+ifneq ($(VIRTUALENV),no)
+docs:
+       source bin/activate && cd docs && make html
+else
+       cd docs && make html
+endif
+
 develop: $(maybe_venv_dep) i18n mediagoblin.ini
 
 # NEVER clobber a user's mediagoblin.ini once they've defined it