-##############################################################################
-# Generic debian/rules file. Based on:
-#
-#> Sample debian.rules file - for GNU Hello (1.3).
-#> Copyright 1994,1995 by Ian Jackson.
-#> I hereby give you perpetual unlimited permission to copy,
-#> modify and relicense this file, provided that you do not remove
-#> my name from the file itself. (I assert my moral right of
-#> paternity under the Copyright, Designs and Patents Act 1988.)
-#
-# Heavily modified by Joey Hess <joeyh@master.debian.org>
-#
-##############################################################################
-#
-# NOTE: You shouldn't have to edit this file. Edit debian/config instead.
-# If you must edit this file to get your package to build properly, then
-# I have failed. Let me know; mail me.
-#
-# (Currently not handled: multiple binary packages from 1 source package,
-# and binary-indep rule.)
-#
-# NOTE: This file is designed so it doesn't need to be run as root. For
-# actions that require that the user be root, the root password will be
-# prompted for, if you're not already root.
-#
-##############################################################################
-#
-# Changelog:
-# * Fakeroot and sudo fixes.
-# * Run dpkg-gencontrol after debstd, and delete substvars during clean.
-# * Clean up junk files in subdirs.
-# * Modifications for multiple binary package support.
-# * Call debstd after fixing file perms.
-# * Don't pass package name to debstd + fixes for multi binary packages.
-# * Use build-stamp instead of build.
-# * New email address.
-# * Added changelog.
-#
-##############################################################################
-
-# Include config file.
-include debian/config
-
-# Generate a makefile (via configure scriopt or xmkmf).
-makefile-stamp:
- ifeq ($(strip $(use_imakefile)),y)
- xmkmf -a
- endif
- $(use_configure)
- touch makefile-stamp
-
-# Preserve some files that may get deleted/overwritten/modified otherwise.
-preserve-stamp:
- ifneq ($(strip $(preserve_files)),)
- $(foreach file,$(preserve_files),cp $(file) $(file).preserved ;)
- endif
- touch preserve-stamp
-
-build-stamp: preserve-stamp makefile-stamp
- $(checkdir)
- $(build_command)
- touch build-stamp