Don't install xml tools (e.g. be-xml-to-mbox, cattmutt, ...).
[be.git] / Makefile
1 #! /usr/bin/make -f
2 # :vim: filetype=make : -*- makefile; coding: utf-8; -*-
3
4 # Makefile
5 # Part of Bugs Everywhere, a distributed bug tracking system.
6 #
7 # Copyright (C) 2008-2009 Ben Finney <benf@cybersource.com.au>
8 #                         Chris Ball <cjb@laptop.org>
9 #                         W. Trevor King <wking@drexel.edu>
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License along
22 # with this program; if not, write to the Free Software Foundation, Inc.,
23 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24
25 SHELL = /bin/bash
26 PATH = /usr/bin:/bin
27
28 # Directories with semantic meaning
29 DOC_DIR := doc
30
31 # Variables that will be extended by module include files
32 GENERATED_FILES := libbe/_version.py build
33 CODE_MODULES :=
34 CODE_PROGRAMS :=
35
36 # List of modules (directories) that comprise our 'make' project
37 MODULES += ${DOC_DIR}
38
39 RM = rm
40
41 #PREFIX = /usr/local
42 PREFIX = ${HOME}
43 INSTALL_OPTIONS = "--prefix=${PREFIX}"
44
45 \f
46 .PHONY: all
47 all: build
48
49 # Include the make data for each module
50 include $(patsubst %,%/module.mk,${MODULES})
51
52 \f
53 .PHONY: build
54 build: libbe/_version.py
55         python setup.py build
56
57 .PHONY: install
58 install: doc build
59         python setup.py install ${INSTALL_OPTIONS}
60 #cp -v interfaces/xml/* ${PREFIX}/bin
61 #cp -v interfaces/email/catmutt ${PREFIX}/bin
62
63 \f
64 .PHONY: clean
65 clean:
66         $(RM) -rf ${GENERATED_FILES}
67
68 .PHONY: libbe/_version.py
69 libbe/_version.py:
70         bzr version-info --format python > $@