[Pkg-gtkpod-devel] r228 - libgpod/trunk/debian
djpig at alioth.debian.org
djpig at alioth.debian.org
Tue Jul 17 15:27:36 UTC 2007
Author: djpig
Date: 2007-07-17 15:27:36 +0000 (Tue, 17 Jul 2007)
New Revision: 228
Modified:
libgpod/trunk/debian/rules
Log:
Fix debian/rules so that we don't build each package twice
Modified: libgpod/trunk/debian/rules
===================================================================
--- libgpod/trunk/debian/rules 2007-07-17 14:54:43 UTC (rev 227)
+++ libgpod/trunk/debian/rules 2007-07-17 15:27:36 UTC (rev 228)
@@ -16,34 +16,37 @@
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
-
-
DEB_CONFIGURE_INVOKE=$(CURDIR)/configure $(confflags) --prefix=/usr --includedir="\$${prefix}/include" --mandir="\$${prefix}/share/man" --infodir="\$${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var --libexecdir="\$${prefix}/lib/libgpod" --disable-maintainer-mode --disable-dependency-tracking --srcdir=$(CURDIR)
-configure-common:
+build/libgpod$(SONAME)/config.status:
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
+ mkdir -p $(dir $@)
+ cd $(dir $@) && $(DEB_CONFIGURE_SCRIPT_ENV) $(DEB_CONFIGURE_INVOKE) --with-python=no $(DEB_CONFIGURE_EXTRA_FLAGS)
-configure/libgpod$(SONAME): configure-common
- mkdir -p $(subst configure/,build/,$@)
- cd $(subst configure/,build/,$@) && $(DEB_CONFIGURE_SCRIPT_ENV) $(DEB_CONFIGURE_INVOKE) --with-python=no $(DEB_CONFIGURE_EXTRA_FLAGS)
+build/libgpod$(SONAME)-nogtk/config.status:
+ cp -f /usr/share/misc/config.sub config.sub
+ cp -f /usr/share/misc/config.guess config.guess
+ mkdir -p $(dir $@)
+ cd $(dir $@) && $(DEB_CONFIGURE_SCRIPT_ENV) $(DEB_CONFIGURE_INVOKE) --with-python=no --disable-gdk-pixbuf $(DEB_CONFIGURE_EXTRA_FLAGS)
-configure/libgpod$(SONAME)-nogtk: configure-common
- mkdir -p $(subst configure/,build/,$@)
- cd $(subst configure/,build/,$@) && $(DEB_CONFIGURE_SCRIPT_ENV) $(DEB_CONFIGURE_INVOKE) --with-python=no --disable-gdk-pixbuf $(DEB_CONFIGURE_EXTRA_FLAGS)
+configure-stamp: build/libgpod$(SONAME)/config.status build/libgpod$(SONAME)-nogtk/config.status
+ touch $@
-build/libgpod$(SONAME) build/libgpod$(SONAME)-nogtk: configure-stamp
- cd $@ && make
-configure-stamp: configure/libgpod$(SONAME) configure/libgpod$(SONAME)-nogtk
+build/libgpod$(SONAME)/build-stamp build/libgpod$(SONAME)-nogtk/build-stamp: configure-stamp
+ cd $(dir $@) && $(MAKE)
+
+build-stamp: build/libgpod$(SONAME)/build-stamp build/libgpod$(SONAME)-nogtk/build-stamp
touch $@
+build: build-stamp
-install/libgpod$(SONAME) install/libgpod$(SONAME)-nogtk:
- cd $(subst install/,build/,$@) && make install DESTDIR=$(CURDIR)/debian/tmp$(subst install/libgpod$(SONAME),,$@)
+build/libgpod$(SONAME)/install-stamp build/libgpod$(SONAME)-nogtk/install-stamp:
+ cd $(dir $@) && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp$(subst build/libgpod$(SONAME),,$(dir $@))
-install/python-gpod:
+build/python-gpod:
PYVERS=$$(pyversions -v -r ./debian/control) ; \
cd build/libgpod$(SONAME) && for PYVER in $$PYVERS; do \
export PYTHON=python$$PYVER ; $(DEB_CONFIGURE_SCRIPT_ENV) $(DEB_CONFIGURE_INVOKE) --with-python=yes $(DEB_CONFIGURE_EXTRA_FLAGS) && \
@@ -51,16 +54,18 @@
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp && \
cd ../.. ; \
done
+ touch $@
-clean::
+install-stamp: build/libgpod$(SONAME)/install-stamp build/libgpod$(SONAME)-nogtk/install-stamp build/python-gpod
+ touch $@
+
+clean:
rm -rf build
dh_clean
rm -rf debian/tmp-nogtk
rm -f configure-stamp build-stamp install-stamp
rm -f debian/libgpod-nogtk-dev.install debian/libgpod$(SONAME)-nogtk.install debian/libgpod-nogtk-dev.links
- rm -f config.guess config.sub
-
binary-arch: build-stamp install-stamp
dh_testdir
dh_testroot
@@ -86,12 +91,5 @@
binary: binary-arch binary-indep
binary-indep:
-build: build/libgpod$(SONAME) build/libgpod$(SONAME)-nogtk
+.PHONY: build binary-arch binary-indep binary
-build-stamp: build
- touch $@
-
-install-stamp: install/libgpod$(SONAME) install/libgpod$(SONAME)-nogtk install/python-gpod
-
-.PHONY: build configure/libgpod$(SONAME) configure/libgpod$(SONAME)-nogtk install/python-gpod install/libgpod$(SONAME) install/libgpod$(SONAME)-nogtk binary-arch binary-indep binary configure-common
-
More information about the Pkg-gtkpod-devel
mailing list