aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-25 13:31:31 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-25 13:31:31 -0400
commitfc9c1d719629858fcaa077ad5661bf414864220a (patch)
tree53054ea6f4279bef6049ab9194f396609ce06790 /Makefile
parent586a426cedc62893d857f54b9b3e588289f78f0c (diff)
downloadbugseverywhere-fc9c1d719629858fcaa077ad5661bf414864220a.tar.gz
Added auto-generated version info. (be --version)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 47fbbfd..f924608 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,9 @@ MODULES += ${DOC_DIR}
RM = rm
+PREFIX = ${HOME}
+INSTALL_OPTIONS = "--prefix=${PREFIX}"
+
.PHONY: all
all: build
@@ -36,12 +39,18 @@ include $(patsubst %,%/module.mk,${MODULES})
.PHONY: build
-build:
+build: libbe/_version.py
+ python setup.py build
.PHONY: install
-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 > $@