2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4 # Modified by John Goerzen
6 # Uncomment this to turn on verbose mode.
9 # This is the debhelper compatibility version to use.
16 ifneq (,$(findstring debug
,$(DEB_BUILD_OPTIONS
)))
19 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
23 configure
: configure-stamp
26 # Add here commands to configure the package.
27 #$(PYTHON) setup.py configure
34 build-stamp
: configure-stamp
37 # Add here commands to compile the package.
38 $(PYTHON
) setup.py build
39 #/usr/bin/docbook-to-man debian/pygopherd.sgml > pygopherd.1
46 rm -f build-stamp configure-stamp
48 # Add here commands to clean up after the build process.
59 # Add here commands to install the package into debian/pygopherd.
60 #$(MAKE) install DESTDIR=$(CURDIR)/debian/pygopherd
61 $(PYTHON
) setup.py
install --root
=`pwd`/debian
/$(PACKAGE
) --no-compile
64 # Build architecture-dependent files here.
65 binary-arch
: build
install
66 # We have nothing to do by default.
68 # Build architecture-independent files here.
69 binary-indep
: build
install
74 mv debian
/$(PACKAGE
)/usr
/bin
/$(PACKAGE
).py \
75 debian
/$(PACKAGE
)/usr
/bin
/$(PACKAGE
)
100 binary
: binary-indep binary-arch
101 .PHONY
: build
clean binary-indep binary-arch binary
install configure