debian swirl logo

Back to the packages list ann

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2008 Rafael Laboissiere 

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

DEB_AUTO_UPDATE_AUTOHEADER = 2.61
DEB_AUTO_UPDATE_AUTOCONF = 2.61
DEB_AUTO_UPDATE_ACLOCAL = 1.11
DEB_AUTO_UPDATE_AUTOMAKE = 1.11
DEB_AUTOMAKE_ARGS = --foreign --add-missing
DEB_AUTO_UPDATE_LIBTOOL = pre

DEB_COMPRESS_EXCLUDE = .pdf

SAVE_FILES = Makefile ann2fig/Makefile sample/Makefile test/Makefile


makebuilddir/libann0::
	# Save upstream Makefiles
		for f in $(SAVE_FILES) ; do 					\
			if [ ! -f $$f-orig ] ; then mv $$f $$f-orig ; fi	\
		done
	# Access several AC_CXX_* macros from the Autoconf archive
		test -L m4 || ln -s /usr/share/aclocal m4
	# Create an empty aclocal.m4, otherwise CDBS will not create one
		touch aclocal.m4
	# Created autotools auxiliary directory cfg
		mkdir -p cfg

build/libann0::
	# Check the package
		( cd test ;				\
		  ./ann_test < test1.in > /dev/null ;	\
		  ./ann_test < test2.in > /dev/null )

build/ann-tools:: debian/ann2fig.1 debian/ann_sample.1 debian/ann_test.1

%.1: %.pod
	pod2man --center= "User Commands" --release="ANN 1.1.1" $< > $@

clean::
	# Restore upstream Makefiles
		for f in $(SAVE_FILES) ; do 				\
			if [ -f $$f-orig ] ; then mv $$f-orig $$f ; fi	\
		done
	# Remove autotools auxiliary directory cfg
		rm -rf cfg autom4te.cache configure

Builds:

ann-tools
approximate nearest neighbor searching library (tools)
libann0
approximate nearest neighbor searching library
libann-dev
approximate nearest neighbor searching library (development files)