2 # :vim: filetype=make : -*- makefile; coding: utf-8; -*-
5 # Part of Bugs Everywhere, a distributed bug tracking system.
7 # Copyright (C) 2008-2011 Anton Batenev <abbat@abbat>
8 # Ben Finney <benf@cybersource.com.au>
9 # Eric Kow <eric.kow@gmail.com>
10 # Gianluca Montecchi <gian@grys.it>
11 # W. Trevor King <wking@drexel.edu>
13 # This file is part of Bugs Everywhere.
15 # Bugs Everywhere is free software; you can redistribute it and/or modify it
16 # under the terms of the GNU General Public License as published by the
17 # Free Software Foundation, either version 2 of the License, or (at your
18 # option) any later version.
20 # Bugs Everywhere is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 # General Public License for more details.
25 # You should have received a copy of the GNU General Public License
26 # along with Bugs Everywhere. If not, see <http://www.gnu.org/licenses/>.
30 RST2MAN = /usr/bin/rst2man
31 RST2HTML = /usr/bin/rst2html
33 #PATH = /usr/bin:/bin # must include sphinx-build for 'sphinx' target.
35 #INSTALL_OPTIONS = "--prefix=/usr/local"
36 INSTALL_OPTIONS = "--user"
38 # Select the documentation you wish to build
41 # Directories with semantic meaning
43 MAN_DIR := ${DOC_DIR}/man
46 LIBBE_VERSION := libbe/_version.py
47 GENERATED_FILES := build $(LIBBE_VERSION)
49 MANPAGE_FILES = $(patsubst %,${MAN_DIR}/%,${MANPAGES})
50 MANPAGE_HTML = $(patsubst %,${MAN_DIR}/%.html,${MANPAGES})
51 GENERATED_FILES += ${MANPAGE_FILES} ${MANPAGE_HTML}
59 build: $(LIBBE_VERSION)
67 python setup.py install ${INSTALL_OPTIONS}
74 $(RM) -rf ${GENERATED_FILES}
75 $(MAKE) -C ${DOC_DIR} clean
78 .PHONY: libbe/_version.py
80 git log -1 --date=short --pretty='format:"Autogenerated by make libbe/_version.py"%nversion_info = {%n "date":"%cd",%n "revision":"%H",%n "committer":"%cn"}%n' > $@
92 $(MAKE) -C ${DOC_DIR} html