3 # Sample debian/rules that uses debhelper.
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
13 include /usr/share/dpatch/dpatch.make
15 # Uncomment this to turn on verbose mode.
18 # This has to be exported to make some magic below work.
25 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
31 configure: configure-stamp
32 configure-stamp: patch
41 build-arch: build-arch-stamp
42 build-arch-stamp: configure
43 $(CC) -o iec16022 iec16022.c -DLIB image.c reedsol.c iec16022ecc200.c -lz -lpopt
44 touch build-arch-stamp
46 build-indep: build-indep-stamp
47 build-indep-stamp: configure
48 touch build-indep-stamp
50 clean: clean-patched unpatch
54 rm -f build-arch-stamp build-indep-stamp configure-stamp
67 # Add here commands to install the indep part of the package into
68 # debian/<package>-doc.
79 # Add here commands to install the arch part of the package into
81 #$(MAKE) install DESTDIR=$(CURDIR)/debian/projectm
84 # Must not depend on anything. This is to be called by
85 # binary-arch/binary-indep
86 # in another 'make' thread.
90 dh_installchangelogs CHANGELOG
104 # Build architecture independant packages using the common target.
105 binary-indep: build-indep install-indep
106 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
108 # Build architecture dependant packages using the common target.
109 binary-arch: build-arch install-arch
110 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
113 .PHONY: build clean binary install configure