]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* debian/rules and debian/module/rules improvements:
authorRuss Allbery <rra@debian.org>
Wed, 26 Mar 2008 23:21:49 +0000 (23:21 +0000)
committerRuss Allbery <rra@debian.org>
Wed, 26 Mar 2008 23:21:49 +0000 (23:21 +0000)
  - Remove all modified generated files on debian/rules clean.
  - Depend on $(QUILT_STAMPFN) instead of patch.
  - Use touch $@ to create stamp files.
  - Use a stamp file for the module's install target.

debian/changelog
debian/module/rules
debian/rules

index 34e8ec45ae0798b3050abfda9130f37ebf851874..5513c6ef136f48fef7038d9ef78b8952518b15a7 100644 (file)
@@ -8,7 +8,11 @@ openafs (1.4.7~pre1.dfsg1-1) UNRELEASED; urgency=low
     - Better fileserver host tracking.
     - Ubik fixes preventing database truncation on unreliable links.
   * Update doc-base control file sections for the new categorization.
-  * Remove all modified generated files on debian/rules clean.
+  * debian/rules and debian/module/rules improvements:
+    - Remove all modified generated files on debian/rules clean.
+    - Depend on $(QUILT_STAMPFN) instead of patch.
+    - Use touch $@ to create stamp files.
+    - Use a stamp file for the module's install target.
 
  -- Russ Allbery <rra@debian.org>  Mon, 03 Mar 2008 18:49:17 -0800
 
index 620210da13ca0aecde7baa5285f847915c9e2420..99a2da166042117bd0c11c5785152a4cdd112454 100755 (executable)
@@ -59,23 +59,24 @@ configure-stamp:
            --with-linux-kernel-headers=$(KSRC) --prefix=`pwd`/debian/tmp \
            --enable-debug --enable-lwp-debug --enable-kernel-debug \
            $(DEBIAN_OPT_FLAGS) $(DEBIAN_KERN_FLAGS)
-       touch configure-stamp
+       touch $@
 
 build: build-arch build-indep
-build-arch: build-arch-stamp
+build-arch: build-stamp
 build-indep:
-build-arch-stamp: configure-stamp
+build-stamp: configure-stamp
        make only_libafs
-       touch build-arch-stamp
+       touch $@
 
 clean:
        dh_testdir
        dh_testroot
-       rm -f build-arch-stamp configure-stamp
+       rm -f install-stamp build-stamp configure-stamp
        [ ! -f Makefile ] || $(MAKE) distclean
        dh_clean
 
-install: build-arch-stamp
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
        dh_clean -k
@@ -86,10 +87,11 @@ install: build-arch-stamp
                -a ! -f $(moduledir)/openafs.mp.o ; then \
            ln $(moduledir)/openafs.o $(moduledir)/openafs.mp.o || exit 1 ; \
        fi
+       touch $@
 
 binary: binary-arch binary-indep
 binary-indep:
-binary-arch: install
+binary-arch: install-stamp
        dh_testdir
        dh_testroot
        dh_installchangelogs NEWS
@@ -108,11 +110,11 @@ binary-arch: install
 
 kdist_configure: configure-stamp
 
-kdist_image: build-arch-stamp
+kdist_image: build-stamp
        $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules binary-arch
        $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules clean
 
-kdist: build-arch-stamp
+kdist: build-stamp
        $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules binary-arch
        KSRC="$(KSRC)" KMAINT="$(KMAINT)" KEMAIL="$(KEMAIL)" \
            sh -v debian/genchanges
index 35d71397464ed35ca6dc3496c02c0d8dc08ee7cc..07c46e13fd738ed2e0113888faf111e135d2c0b7 100755 (executable)
@@ -71,7 +71,7 @@ get-orig-source:
        gzip -9 openafs_$(DEBVERS).orig.tar
 
 configure: configure-stamp
-configure-stamp: patch
+configure-stamp: $(QUILT_STAMPFN)
        @if test x"$(SYS_NAME)" = x"UNKNOWN" ; then exit 1 ; fi
        dh_testdir
        sh regen.sh
@@ -85,8 +85,8 @@ configure-stamp: patch
            --enable-bos-new-config \
            --enable-debug --enable-lwp-debug \
            $(DEBIAN_OPT_FLAGS) $(SYSTEM)
-       chmod a+x src/libafs/make_kbuild_makefile.pl         
-       touch configure-stamp
+       chmod a+x src/libafs/make_kbuild_makefile.pl
+       touch $@
 
 build: build-arch build-indep
 build-arch: configure-stamp build-stamp
@@ -96,7 +96,7 @@ build-stamp:
        mkdir -p $(CURDIR)/debian/tmp
        $(MAKE) install_nolibafs DESTDIR=$(CURDIR)/debian/tmp
        chmod +x debian/afs-rootvol debian/afs-newcell
-       touch build-stamp
+       touch $@
 
 clean: unpatch
        dh_testdir
@@ -146,7 +146,7 @@ install-stamp: build-stamp
            afs-newcell ) \
            >debian/openafs-dbserver/usr/share/man/man8/afs-newcell.8
 
-       touch install-stamp
+       touch $@
 
 # Rules for building the openafs-modules-source package.
 binary-source: