gmyth-stream/gmencoder/debian/rules
author melunko
Tue Sep 18 14:06:39 2007 +0100 (2007-09-18)
branchtrunk
changeset 849 ce58aae12c2e
permissions -rwxr-xr-x
[svn r855] Fixed debian/control file
melunko@848
     1
#!/usr/bin/make -f
melunko@848
     2
# -*- makefile -*-
melunko@848
     3
# Sample debian/rules that uses debhelper.
melunko@848
     4
# This file was originally written by Joey Hess and Craig Small.
melunko@848
     5
# As a special exception, when this file is copied by dh-make into a
melunko@848
     6
# dh-make output file, you may use that output file without restriction.
melunko@848
     7
# This special exception was added by Craig Small in version 0.37 of dh-make.
melunko@848
     8
melunko@848
     9
# Uncomment this to turn on verbose mode.
melunko@848
    10
#export DH_VERBOSE=1
melunko@848
    11
melunko@848
    12
melunko@848
    13
# These are used for cross-compiling and for saving the configure script
melunko@848
    14
# from having to guess our platform (since we know it already)
melunko@848
    15
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
melunko@848
    16
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
melunko@848
    17
melunko@848
    18
melunko@848
    19
CFLAGS = -Wall -g
melunko@848
    20
melunko@848
    21
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
melunko@848
    22
	CFLAGS += -O0
melunko@848
    23
else
melunko@848
    24
	CFLAGS += -O2
melunko@848
    25
endif
melunko@848
    26
melunko@848
    27
config.status: configure
melunko@848
    28
	dh_testdir
melunko@848
    29
	# Add here commands to configure the package.
melunko@848
    30
	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
melunko@848
    31
melunko@848
    32
melunko@848
    33
build: build-stamp
melunko@848
    34
melunko@848
    35
build-stamp:  config.status
melunko@848
    36
	dh_testdir
melunko@848
    37
melunko@848
    38
	# Add here commands to compile the package.
melunko@848
    39
	$(MAKE)
melunko@848
    40
	#docbook-to-man debian/gmencoder.sgml > gmencoder.1
melunko@848
    41
melunko@848
    42
	touch $@
melunko@848
    43
melunko@848
    44
clean:
melunko@848
    45
	dh_testdir
melunko@848
    46
	dh_testroot
melunko@848
    47
	rm -f build-stamp 
melunko@848
    48
melunko@848
    49
	# Add here commands to clean up after the build process.
melunko@848
    50
	-$(MAKE) distclean
melunko@848
    51
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
melunko@848
    52
	cp -f /usr/share/misc/config.sub config.sub
melunko@848
    53
endif
melunko@848
    54
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
melunko@848
    55
	cp -f /usr/share/misc/config.guess config.guess
melunko@848
    56
endif
melunko@848
    57
melunko@848
    58
melunko@848
    59
	dh_clean 
melunko@848
    60
melunko@848
    61
install: build
melunko@848
    62
	dh_testdir
melunko@848
    63
	dh_testroot
melunko@848
    64
	dh_clean -k 
melunko@848
    65
	dh_installdirs
melunko@848
    66
melunko@848
    67
	# Add here commands to install the package into debian/gmencoder.
melunko@848
    68
	$(MAKE) DESTDIR=$(CURDIR)/debian/gmencoder install
melunko@848
    69
melunko@848
    70
melunko@848
    71
# Build architecture-independent files here.
melunko@848
    72
binary-indep: build install
melunko@848
    73
# We have nothing to do by default.
melunko@848
    74
melunko@848
    75
# Build architecture-dependent files here.
melunko@848
    76
binary-arch: build install
melunko@848
    77
	dh_testdir
melunko@848
    78
	dh_testroot
melunko@848
    79
	dh_installchangelogs ChangeLog
melunko@848
    80
	dh_installdocs
melunko@848
    81
	dh_installexamples
melunko@848
    82
	dh_install
melunko@848
    83
#	dh_installmenu
melunko@848
    84
#	dh_installdebconf	
melunko@848
    85
#	dh_installlogrotate
melunko@848
    86
#	dh_installemacsen
melunko@848
    87
#	dh_installpam
melunko@848
    88
#	dh_installmime
melunko@848
    89
#	dh_python
melunko@848
    90
#	dh_installinit
melunko@848
    91
#	dh_installcron
melunko@848
    92
#	dh_installinfo
melunko@848
    93
	dh_installman
melunko@848
    94
	dh_link
melunko@848
    95
	dh_strip
melunko@848
    96
	dh_compress
melunko@848
    97
	dh_fixperms
melunko@848
    98
#	dh_perl
melunko@848
    99
#	dh_makeshlibs
melunko@848
   100
	dh_installdeb
melunko@848
   101
	dh_shlibdeps
melunko@848
   102
	dh_gencontrol
melunko@848
   103
	dh_md5sums
melunko@848
   104
	dh_builddeb
melunko@848
   105
melunko@848
   106
binary: binary-indep binary-arch
melunko@848
   107
.PHONY: build clean binary-indep binary-arch binary install