~pjdc/mojo/juju-2-no-fail-when-retrying-errors

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Tom Haddon
  • Date: 2015-01-21 07:26:49 UTC
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: tom.haddon@canonical.com-20150121072649-y61tqnw45yka3gxc
Re-arrange the docs directory so we can have header and footer more easily

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        cd debian && debuild -sa -I.bzr
76
76
 
77
77
clean-docs:
78
 
        cd docs && rm -f *.html
 
78
        @echo Cleaning documentation directory...
 
79
        cd docs/www && rm -f *.html
79
80
 
80
81
generate-docs: clean-docs
81
 
        for mdfile in docs/*.md; do \
82
 
                markdown $$mdfile > $${mdfile%.*}.html ; \
 
82
        @echo Generatiing html documentation in docs/www...
 
83
        for mdfile in docs/mojo/*.md; do \
 
84
                mdfile=$${mdfile%.*}.html ; \
 
85
                mdfile=$${mdfile/www/mojo} ; \
 
86
                cp header.html $${mdfile}.html ; \
 
87
                markdown $$mdfile >> $${mdfile}.html ; \
 
88
                cat footer.html >> $${mdfile}.html ; \
83
89
        done