[syrthes/master] Source format 3.0 (suilt)
Gilles Filippini
pini at debian.org
Tue Feb 15 23:15:34 UTC 2011
---
debian/rules | 88 ++++++++-------------------------------------------------
1 files changed, 13 insertions(+), 75 deletions(-)
diff --git a/debian/rules b/debian/rules
index e86ce21..f3c699c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,30 +1,19 @@
#!/usr/bin/make -f
# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# 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.
# 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
+
SYRTHES_HOME=usr/lib/syrthes
INSTALL_DIR=$(CURDIR)/debian/syrthes
-include /usr/share/quilt/quilt.make
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
-
- touch configure-stamp
+%:
+ dh $@
-
-build: build-stamp
-
-build-stamp: configure-stamp $(QUILT_STAMPFN)
+override_dh_auto_configure:
dh_testdir
# Add here commands to compile the package.
@@ -34,24 +23,13 @@ build-stamp: configure-stamp $(QUILT_STAMPFN)
touch $@
-clean: clean-patched unpatch
-clean-patched:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
- cd $(CURDIR)/bin && SYRTHES_HOME=$(CURDIR) $(MAKE) distclean
+override_dh_clean:
+ SYRTHES_HOME=$(CURDIR) $(MAKE) -C $(CURDIR)/bin distclean
+ dh_clean
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
-
- # Add here commands to install the package into debian/syrthes.
+override_dh_install:
+ dh_install
+
set -e; \
cd $(CURDIR); \
for dir in bin bin/Linux data example/cylinder example/cylinder/MESH \
@@ -69,47 +47,7 @@ install: build
mv $(INSTALL_DIR)/$(SYRTHES_HOME)/example $(INSTALL_DIR)/usr/share/doc/syrthes/
cd $(INSTALL_DIR)/usr/share/doc/syrthes/example && tar czf cylinder.tar.gz cylinder && rm -fr cylinder
-
-# Build architecture-independent files here.
-binary-indep: install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
-# dh_install
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_python
-# dh_installinit
-# dh_installcron
-# dh_installinfo
- dh_installman
+override_dh_link:
dh_link \
/$(SYRTHES_HOME)/bin/syrthes_create_case /usr/bin/syrthes_create_case \
/$(SYRTHES_HOME)/bin/Linux/syrthes2ensight /usr/bin/syrthes2ensight
- dh_strip
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-
-get-orig-source:
- chmod a+x $(CURDIR)/debian/orig-tar.sh
- uscan --force-download --rename
--
1.7.1
More information about the debian-science-commits
mailing list