2
3
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# This file was originally written by Joey Hess and Craig Small.
6
# As a special exception, when this file is copied by dh-make into a
7
# dh-make output file, you may use that output file without restriction.
8
# This special exception was added by Craig Small in version 0.37 of dh-make.
10
# Modified to make a template file for a multi-binary package with separated
11
# build-arch and build-indep targets by Bill Allombert 2001
5
13
# Uncomment this to turn on verbose mode.
6
14
#export DH_VERBOSE=1
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
22
configure: configure-stamp
23
configure-stamp: patch
25
# Add here commands to configure the package.
32
build-stamp: configure-stamp
35
# Add here commands to compile the package.
37
#/usr/bin/docbook-to-man debian/picprog.sgml > picprog.1
44
rm -f build-stamp configure-stamp
46
# Add here commands to clean up after the build process.
54
dpatch cat-all >patch-stamp
57
rm -rf patch-stamp debian/patched
65
# Add here commands to install the package into debian/picprog.
66
# $(MAKE) install DESTDIR=$(CURDIR)/debian/picprog
67
install -c -o 0 -g 0 -m 755 picprog ./debian/picprog/usr/bin/
68
install -c -o 0 -g 0 -m 644 *.html ./debian/picprog/usr/share/doc/picprog/html
69
install -c -o 0 -g 0 -m 644 *.png ./debian/picprog/usr/share/doc/picprog/html
70
# install -c -o 0 -g 0 -m 644 *.jpg ./debian/picprog/usr/share/doc/picprog/html
72
# Build architecture-independent files here.
73
binary-indep: build install
74
# We have nothing to do by default.
76
# Build architecture-dependent files here.
77
binary-arch: build install
93
dh_installman picprog.1
107
binary: binary-indep binary-arch
108
.PHONY: build clean binary-indep binary-arch binary install configure
16
# This has to be exported to make some magic below work.