2 # :vim: filetype=make : -*- makefile; coding: utf-8; -*-
5 # Part of Bugs Everywhere, a distributed bug tracking system.
7 # Copyright (C) 2008-2009 Ben Finney <benf@cybersource.com.au>
8 # Chris Ball <cjb@laptop.org>
9 # W. Trevor King <wking@drexel.edu>
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.
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.
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.
28 # Directories with semantic meaning
31 # Variables that will be extended by module include files
32 GENERATED_FILES := libbe/_version.py build
36 # List of modules (directories) that comprise our 'make' project
43 INSTALL_OPTIONS = "--prefix=${PREFIX}"
49 # Include the make data for each module
50 include $(patsubst %,%/module.mk,${MODULES})
54 build: libbe/_version.py
59 python setup.py install ${INSTALL_OPTIONS}
60 cp -v interfaces/xml/* ${PREFIX}/bin
61 cp -v interfaces/email/catmutt ${PREFIX}/bin
66 $(RM) -rf ${GENERATED_FILES}
68 .PHONY: libbe/_version.py
70 bzr version-info --format python > $@