summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d39d373)
raw | patch | inline | side by side (parent: d39d373)
author | Bernd Zeimetz <bzed@debian.org> | |
Fri, 8 Feb 2008 22:35:31 +0000 (23:35 +0100) | ||
committer | Bernd Zeimetz <bzed@debian.org> | |
Fri, 8 Feb 2008 22:35:31 +0000 (23:35 +0100) |
debian/rules | patch | blob | history |
diff --git a/debian/rules b/debian/rules
index e5f95c95fdb51e69ae77ee04ff836ff0fff60aaf..7ccd1118e89e76aa0483bfe134f1a3435519e5b2 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
#set the right paths
CONFFLAGS += --prefix=/usr --docdir=/usr/share/doc/rrdtool
+#install perl libs in vendor mode
+CONFFLAGS += --with-perl-options=INSTALLDIRS=vendor
+
+
+
+
#let's take care of optimization + debug builds
CFLAGS += -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
RRDDOCDIR=/usr/share/doc/rrdtool \
./configure $(CONFFLAGS)
-build: build-arch build-indep
+build: build-arch build-indep
-build-arch: build-arch-stamp
-build-arch-stamp: config.status
+build-arch: build-arch-stamp $(PY_VERS:%=build-python%)
+build-arch-stamp: config.status
#configure forgets to set TCL_INC_DIR.
make TCL_INC_DIR=/usr/include/tcl
touch $@
+build-python%: build-arch-stamp
+ cd bindings/python && env BUILDLIBDIR=../../src/.libs LIBDIR=../../src/.libs python$* setup.py build
+ touch $@
+
build-indep: build-indep-stamp
build-indep-stamp: config.status
-clean:
+clean: $(PY_VERS:%=clean-python%)
dh_testdir
dh_testroot
dh_clean
+clean-python%:
+ cd bindings/python && python$* setup.py clean
+ rm -f build-python$*
+
install: install-indep install-arch
install-indep:
dh_testdir
dh_install -s
-install-arch:
+install-arch: $(PY_VERS:%=install-python%)
dh_testdir
dh_testroot
dh_clean -k -s
make install DESTDIR=$(CURDIR)/debian/tmp
- #build and install python
- set -e ;\
- cd bindings/python ;\
- for pv in $(PY_VERS); do \
- BUILDLIBDIR=../../src/.libs python$$pv setup.py build ;\
- python$$pv setup.py install --root=$(CURDIR)/debian/python-rrd ;\
- python$$pv setup.py clean ;\
- done
-
+ #build and install ruby
set -e; \
cd bindings/ruby ;\
for rbv in $(RUBY_VERS); do \
make distclean ;\
done
+install-python%:
+ cd bindings/python && python$* setup.py install --root=$(CURDIR)/debian/python-rrd
binary-indep:
binary: binary-arch binary-indep
-.PHONY: build clean binary-indep binary-arch binary install install-arch install-indep configure
+.PHONY: build clean binary-indep binary-arch binary install install-arch install-indep configure install-python% clean-python%