aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 47fbbfd..2057c8e 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ PATH = /usr/bin:/bin
DOC_DIR := doc
# Variables that will be extended by module include files
-GENERATED_FILES :=
+GENERATED_FILES := libbe/_version.py build
CODE_MODULES :=
CODE_PROGRAMS :=
@@ -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 > $@