summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 23a4b5c..c4fa678 100644
--- a/Makefile
+++ b/Makefile
@@ -4,26 +4,36 @@ TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
PKGNAME = micng
+PLUGIN_DIR = /usr/lib/micng/plugins
+
ifeq ($(VERSION), $(TAGVER))
TAG = $(TAGVER)
else
TAG = "HEAD"
endif
+ifndef PREFIX
+ PREFIX = "/usr/local"
+endif
all:
$(PYTHON) setup.py build
dist-bz2:
- git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ $(TAG) | \
- bzip2 > $(PKGNAME)-$(VERSION).tar.bz2
+ git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | \
+ bzip2 > $(PKGNAME)-$(TAGVER).tar.bz2
dist-gz:
- git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ $(TAG) | \
- gzip > $(PKGNAME)-$(VERSION).tar.gz
+ git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | \
+ gzip > $(PKGNAME)-$(TAGVER).tar.gz
+
+install-plugins:
+ install -d ${DESTDIR}/${PLUGIN_DIR}
+ install -D -m 644 plugins/imager/* ${DESTDIR}/${PLUGIN_DIR}/imager
+ install -D -m 644 plugins/backend/* ${DESTDIR}/${PLUGIN_DIR}/backend
-install: all
- $(PYTHON) setup.py install --root=${DESTDIR}
+install: all install-plugins
+ $(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX)
develop: all
$(PYTHON) setup.py develop