2 # :vim: filetype=make : -*- makefile; coding: utf-8; -*-
5 # Part of Bugs Everywhere, a distributed bug tracking system.
7 # Copyright (C) 2008-2010 Ben Finney <benf@cybersource.com.au>
8 # Chris Ball <cjb@laptop.org>
9 # Gianluca Montecchi <gian@grys.it>
10 # W. Trevor King <wking@drexel.edu>
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License along
23 # with this program; if not, write to the Free Software Foundation, Inc.,
24 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #PATH = /usr/bin:/bin # must include sphinx-build for 'sphinx' target.
32 INSTALL_OPTIONS = "--prefix=${PREFIX}"
34 # Directories with semantic meaning
36 MAN_DIR := ${DOC_DIR}/man
39 GENERATED_FILES := build libbe/_version.py
41 MANPAGE_FILES = $(patsubst %,${MAN_DIR}/%,${MANPAGES})
42 GENERATED_FILES += ${MANPAGE_FILES}
50 build: libbe/_version.py
58 python setup.py install ${INSTALL_OPTIONS}
65 $(RM) -rf ${GENERATED_FILES}
66 $(MAKE) -C ${DOC_DIR} clean
69 .PHONY: libbe/_version.py
71 bzr version-info --format python > $@
77 docbook-to-man $< > $@
81 $(MAKE) -C ${DOC_DIR} html