2
3
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
5
9
# Uncomment this to turn on verbose mode.
6
10
#export DH_VERBOSE=1
8
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
11
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
15
configure: configure-stamp
18
# Add here commands to configure the package.
19
version=$$(basename $$(pwd)| sed 's/chemeq-//'); \
20
sed "s/VERSION.*/VERSION \"$${version}\"/" src/chemeq.h > src/chemeq.h.tmp && \
21
mv src/chemeq.h.tmp src/chemeq.h
28
build-stamp: configure-stamp
31
# Add here commands to compile the package.
33
#/usr/bin/docbook-to-man debian/chemeq.sgml > chemeq.1
40
rm -f build-stamp configure-stamp
42
# Add here commands to clean up after the build process.
53
# Add here commands to install the package into debian/chemeq.
54
$(MAKE) install DESTDIR=$(CURDIR)/debian/chemeq
57
# Build architecture-independent files here.
58
binary-indep: build install
59
# We have nothing to do by default.
61
# Build architecture-dependent files here.
62
binary-arch: build install
80
binary: binary-indep binary-arch
81
.PHONY: build clean binary-indep binary-arch binary install configure