1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2008 Rafael Laboissiere <rafael@debian.org>
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.9
DEB_AUTO_UPDATE_AUTOMAKE = 1.9
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
|