head	1.2;
access;
symbols
	REL7_3_STABLE:1.2.0.2;
locks; strict;
comment	@# @;


1.2
date	2002.08.14.23.30.18;	author jtv;	state Exp;
branches;
next	1.1;

1.1
date	2002.08.10.21.03.36;	author jtv;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Debianization changes by Ray Dassen
@
text
@#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatibility version to use.
export DH_COMPAT=3

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

# shared library versions, option 1
#version=2.0.5
#major=2
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
version=`ls src/.libs/lib*.so.* | \
 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
major=`ls src/.libs/lib*.so.* | \
 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`

sources-update:
	sh ./autogen.sh -v

configure: configure-stamp
configure-stamp:
	dh_testdir
	
	./configure -v --prefix=/usr --enable-maintainer-mode

	touch configure-stamp


build: build-stamp
build-stamp: configure-stamp 
	dh_testdir

	$(MAKE)
	doxygen

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp config.log config.status config.h \
		stamp-h

	# Add here commands to clean up after the build process.
	-$(MAKE) clean

	rm -rf src/.libs src/*.la src/*.o src/*.lo \
		include/pqxx/config.h include/pqxx/stamp-h

	dh_clean

maintainer-clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	-$(MAKE) distclean
	-debian/rules clean

	rm -f aclocal.m4 \
		configure libtool \
		config/depcomp config/config.guess config/config.sub \
		config/install-sh config/ltmain.sh config/missing \
		config/mkinstalldirs \
		include/pqxx/config.h.in include/pqxx/stamp.h.in 

	-find -type f -name 'Makefile.am' | sed -e 's/\.am$$/.in/' | xargs rm -f
	-find -type f -name 'Makefile.am' | sed -e 's/\.am$$//' | xargs rm -f

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_movefiles

#	dh_installdebconf	
	dh_installdocs

	install -p doc/html/Reference/*html \
		$(CURDIR)/debian/libpqxx-dev/usr/share/doc/libpqxx-dev/html/

	dh_installexamples
	dh_installmenu
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
	dh_installcron
	dh_installman
	dh_installinfo
#	dh_undocumented
	dh_installchangelogs ChangeLog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

@


1.1
log
@Added Ray Dassen's Debian stuff, autoconf updates, and .cvsignore files;
added doxygen-generated reference documentation
@
text
@d34 1
a34 1
	./configure -v --prefix=/usr
a42 1
	# Add here commands to compile the package.
d44 1
d72 4
a75 3
		config/config.guess config/config.sub config/install-sh \
		config/ltmain.sh config/missing config/mkinstalldirs \
		include/pqxx/config.h.in 
a87 1
	# Add here commands to install the package into debian/tmp
a89 1

d102 4
@
