#!/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

PATH:=/usr/bin/dh7:/usr/bin:$(PATH)
export PATH
SBOX_REDIRECT_IGNORE=/usr/bin/perl
export SBOX_REDIRECT_IGNORE

DH_OVERRIDEN := dh_installcatalogs dh_installcron dh_installdebconf \
	       dh_installemacsen dh_installifupdown dh_pysupport \
	       dh_installinit dh_installmenu dh_installmime \
	       dh_installmodules dh_installlogcheck \
	       dh_installlogrotate dh_installpam dh_installppp \
	       dh_installudev dh_installwm dh_installxfonts \
	       dh_auto_test dh_installdeb \
	       dh_lintian dh_gconf dh_icons dh_perl

ifneq ($(shell which dh_bugfiles), "")
DH_OVERRIDEN := $(DH_OVERRIDEN) dh_bugfiles
endif

RULE_OVERRIDE := $(patsubst %,override_%,$(DH_OVERRIDEN))

$(RULE_OVERRIDE):

override_dh_installdeb:
	dh_installdeb
	maemo-optify

build:
	dh build
	touch build

clean:
	dh clean
	rm -f build

%:
	dh $@

get-orig-source:
	wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tcc/tcc_0.9.25.orig.tar.bz2
