File: Makefile

package info (click to toggle)
pdf2docx 0.5.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,632 kB
  • sloc: python: 6,692; makefile: 68
file content (18 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Minimal makefile for Sphinx documentation
#

# MODULEDIR and BUILDDIR are set in top makefile
SOURCEDIR  = .
TARGETDIR  = doctrees html

.PHONY: html clean

html: Makefile
	@sphinx-apidoc --separate -o "$(SOURCEDIR)" "$(MODULEDIR)" && \
	sphinx-build -M html "$(SOURCEDIR)" "$(BUILDDIR)"

clean:
	@for p in $(TARGETDIR) ; do \
	    if [ -d "$(BUILDDIR)/$$p" ];  then rm -rf "$(BUILDDIR)/$$p" ; fi ; \
	done
	@if [ -e modules.rst ];  then rm pdf2docx*.rst ; fi