1.1 diff -r 5edfbd3e7a46 -r 1204ebf9340d PTdecode/CImg-1.3.0/resources/debian/rules 1.2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 +++ b/PTdecode/CImg-1.3.0/resources/debian/rules Mon Aug 03 14:09:20 2009 +0100 1.4 @@ -0,0 +1,80 @@ 1.5 +#!/usr/bin/make -f 1.6 +# -*- makefile -*- 1.7 +# Sample debian/rules that uses debhelper. 1.8 +# GNU copyright 1997 to 1999 by Joey Hess. 1.9 +# 1.10 +# Modified to make a template file for a multi-binary package with separated 1.11 +# build-arch and build-indep targets by Bill Allombert 2001 1.12 +# 1.13 +# Modified in order to update the package by François-Xavier Dupé 2007 1.14 + 1.15 +# Uncomment this to turn on verbose mode. 1.16 +#export DH_VERBOSE=1 1.17 + 1.18 +# This has to be exported to make some magic below work. 1.19 +export DH_OPTIONS 1.20 + 1.21 +CFLAGS = -Wall -g 1.22 + 1.23 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 1.24 + CFLAGS += -O0 1.25 +else 1.26 + CFLAGS += -O3 1.27 +endif 1.28 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 1.29 + INSTALL_PROGRAM += -s 1.30 +endif 1.31 + 1.32 +build: build-indep-stamp 1.33 +build-indep-stamp: 1.34 + #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread" 1.35 + #cd examples && $(MAKE) clean 1.36 + #$(MAKE) doc 1.37 + touch build-indep-stamp 1.38 + 1.39 +clean: 1.40 + dh_testdir 1.41 + dh_testroot 1.42 + rm -f build-arch-stamp build-indep-stamp 1.43 + dh_clean 1.44 + 1.45 +install: 1.46 + dh_testdir 1.47 + dh_testroot 1.48 + dh_clean -k 1.49 + dh_installdirs 1.50 + dh_install 1.51 + 1.52 +binary-indep: build install 1.53 + dh_testdir 1.54 + dh_testroot 1.55 + dh_installchangelogs 1.56 + dh_installdocs 1.57 + dh_compress 1.58 +# dh_installmenu 1.59 +# dh_installdebconf 1.60 +# dh_installlogrotate 1.61 +# dh_installemacsen 1.62 +# dh_installpam 1.63 +# dh_installmime 1.64 +# dh_installinit 1.65 +# dh_installcron 1.66 +# dh_installinfo 1.67 +# dh_installman 1.68 + dh_link 1.69 + dh_strip 1.70 + dh_fixperms 1.71 +# dh_perl 1.72 +# dh_python 1.73 + dh_makeshlibs 1.74 + dh_installdeb 1.75 + dh_shlibdeps 1.76 + dh_gencontrol 1.77 + dh_md5sums 1.78 + dh_builddeb 1.79 + 1.80 +# Build architecture dependant packages using the common target. 1.81 +binary-arch: build install 1.82 + 1.83 +binary: binary-indep binary-arch 1.84 +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch