blob: 034f03326b0374562cf465c40a7cf27ba996366a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#! /usr/bin/make -f
# :vim: filetype=make : -*- makefile; coding: utf-8; -*-
# Makefile
# Part of Bugs Everywhere, a distributed bug tracking system.
#
# Copyright (C) 2008-2009 Ben Finney <benf@cybersource.com.au>
# Chris Ball <cjb@laptop.org>
# W. Trevor King <wking@drexel.edu>
# This is free software; you may copy, modify and/or distribute this work
# under the terms of the GNU General Public License, version 2 or later.
# No warranty expressed or implied. See the file COPYING for details.
# Makefile for Bugs Everywhere project
SHELL = /bin/bash
PATH = /usr/bin:/bin
# Directories with semantic meaning
DOC_DIR := doc
# Variables that will be extended by module include files
GENERATED_FILES := libbe/_version.py build
CODE_MODULES :=
CODE_PROGRAMS :=
# List of modules (directories) that comprise our 'make' project
MODULES += ${DOC_DIR}
RM = rm
PREFIX = ${HOME}
INSTALL_OPTIONS = "--prefix=${PREFIX}"
.PHONY: all
all: build
# Include the make data for each module
include $(patsubst %,%/module.mk,${MODULES})
.PHONY: build
build: libbe/_version.py
python setup.py build
.PHONY: install
install: doc build
python setup.py install ${INSTALL_OPTIONS}
cp -v xml/* ${PREFIX}/bin
.PHONY: clean
clean:
$(RM) -rf ${GENERATED_FILES}
libbe/_version.py:
bzr version-info --format python > $@
|