[mpfi] 30/39: Use a minimalist rules file.
Jerome Benoit
calculus-guest at moszumanska.debian.org
Sat May 23 02:12:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository mpfi.
commit 2826867678cfaf4c57b0e6475629ed2d4c7c2dc3
Author: Laurent Fousse <laurent at komite.net>
Date: Tue Sep 27 22:16:00 2011 +0200
Use a minimalist rules file.
---
debian/rules | 130 ++---------------------------------------------------------
1 file changed, 3 insertions(+), 127 deletions(-)
diff --git a/debian/rules b/debian/rules
index 06942d3..b4c921b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,132 +1,8 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# This file is public domain software, originally written by Joey Hess.
-#
-# This version is for a multibinary package. It also allows you to build any
-# of the binary packages independantly, via binary-<package> targets.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
-
-export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-with_check := yes
-ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
- with_check := disabled through DEB_BUILD_OPTIONS
-endif
-
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags += --build $(DEB_HOST_GNU_TYPE)
-else
- confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
-export CFLAGS = -g
-export LDFLAGS = -Wl,-z,defs
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS += -O0
-else
-CFLAGS += -O3
-endif
ifeq ($(DEB_BUILD_GNU_CPU),sh4)
- CFLAGS += -mieee
-endif
-
-build: build-stamp
-build-stamp:
- dh_testdir
-
- ./configure $(confflags) --prefix=/usr \
- --enable-shared
- $(MAKE)
-ifeq ($(with_check),yes)
- ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- MPFI_CHECK_RANDOMIZE=1 $(MAKE) check
- endif
+ CFLAGS+=-mieee
endif
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
- dh_clean
-
-install: DH_OPTIONS=
-install: build
- dh_testdir
- dh_testroot
- dh_clean
- dh_installdirs
-
- $(MAKE) DESTDIR=`pwd`/debian/tmp install
- # Policy §10.2:
- rm -f debian/tmp/usr/lib/libmpfi.la
-
- # Library packages
-# dh_install -plibmpfi0 --sourcedir=debian/tmp
-# dh_install -plibmpfi-dev --sourcedir=debian/tmp
- dh_install --sourcedir=debian/tmp
-
-
- dh_makeshlibs -v -plibmpfi0
-
-# This single target is used to build all the packages, all at once, or
-# one at a time. So keep in mind: any options passed to commands here will
-# affect _all_ packages. Anything you want to only affect one package
-# should be put in another target, such as the install target.
-binary-common:
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs NEWS README
- dh_installexamples
- dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installcatalogs
-# dh_installpam
-# dh_installmime
-# dh_installinit
-# dh_installman
-# dh_installcron
- dh_installinfo
-# dh_undocumented
- dh_strip
- dh_link
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_python
-# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-# Build architecture independant packages using the common target.
-binary-indep: build install
-# (Uncomment this next line if you have such packages.)
-# $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-# Build architecture dependant packages using the common target.
-binary-arch: build install
- $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
-
-# Any other binary targets build just one binary package at a time.
-binary-%: build install
- make -f debian/rules binary-common DH_OPTIONS=-p$*
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary-common binary install
+%:
+ dh $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mpfi.git
More information about the debian-science-commits
mailing list