add build-indep build-arch (as build alias) and tweak a tad
authortg <tg@mirbsd.org>
Thu, 28 Jul 2011 11:35:12 +0000 (11:35 +0000)
committertg <tg@mirbsd.org>
Thu, 28 Jul 2011 11:35:12 +0000 (11:35 +0000)
debian/rules

index effd4ba..98a4474 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/make -f
-# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.9 2011/07/28 11:23:54 tg Exp $
+# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.10 2011/07/28 11:35:12 tg Exp $
 #-
 # -*- makefile -*-
 # Sample debian/rules that uses debhelper.
@@ -8,6 +8,7 @@
 # dh-make output file, you may use that output file without restriction.
 # This special exception was added by Craig Small in version 0.37 of dh-make.
 
+SHELL?=                sh
 CC?=           gcc
 CFLAGS=                -Wall -g
 
@@ -81,10 +82,10 @@ debian/.configure_stamp:
        cp /usr/share/misc/config.guess /usr/share/misc/config.sub build-aux/
        mkdir debian/builddir debian/stagedir
        cd debian/builddir && \
-           env ${CONFIGURE_ENV} sh ../../configure ${CONFIGURE_ARGS}
+           env ${CONFIGURE_ENV} ${SHELL} ../../configure ${CONFIGURE_ARGS}
        @:>$@
 
-build: debian/.build_stamp
+build build-indep build-arch: debian/.build_stamp
 
 debian/.build_stamp: debian/.configure_stamp
        dh_testdir
@@ -148,4 +149,4 @@ binary-arch: build install
        dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install check
+.PHONY: build build-indep build-arch clean binary-indep binary-arch binary install check