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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
#!/usr/bin/make -f
# -*- Makefile -*-
# debian/rules file for the Libtool Debian GNU/Linux package
# written April 1999 by Ossama Othman <ossama@debian.org>
# based on the libtool-1.2d-2 rules file
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Use debhelper v3 features.
export DH_COMPAT=3
build: build-stamp
build-stamp:
dh_testdir
# Pull in the latest config.{guess,sub} scripts from the
# autotools-dev package. These will only be used when
# building the Debian libtool and libltdl packages. The actual
# installed libtool package will use symbolic links to the
# config.{guess,sub} scripts provided by the autotools-dev
# package. This ensures that the latest versions of those
# scripts will be pulled into a given package when
# "libtoolizing" it.
rm -f config.guess config.sub
for p in config.guess config.sub; do \
cp /usr/share/misc/$$p .; \
done
# ./configure --prefix=/usr \
# --program-transform-name="s/\(libtool.*\)/\1-1.5/"
./configure --prefix=/usr
$(MAKE)
touch build-stamp
clean:
dh_testdir
# dh_testroot
rm -f build-stamp install-stamp
-$(MAKE) clean
-$(MAKE) distclean
rm -f doc/*.html *.tar.gz
rm -f config.cache config.log config.status
rm -f */config.cache */config.log */config.status
rm -f cdemo.tar.gz demo.tar.gz depdemo.tar.gz mdemo.tar.gz tagdemo.tar.gz
rm -f conftest* */conftest*
rm -rf debian/libtool
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
# dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
$(MAKE) prefix=`pwd`/debian/tmp/usr install
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# This generated HTML page goes into libtool-doc.
cd doc && texi2html -monolithic libtool.texi
# These go into the libtool-doc `examples' directory.
GZIP=--best tar zcf ./cdemo.tar.gz cdemo
GZIP=--best tar zcf ./demo.tar.gz demo
GZIP=--best tar zcf ./mdemo.tar.gz mdemo
GZIP=--best tar zcf ./depdemo.tar.gz depdemo
# GZIP=--best tar zcf ./tagdemo.tar.gz tagdemo
dh_movefiles -i
# dh_testversion
dh_testdir -i
# dh_testroot -i
dh_installdocs -i
dh_installinfo -plibtool-doc
dh_installexamples -i
# dh_installmenu -i
# dh_installemacsen -i
# dh_installinit -i
# dh_installcron -i
# dh_installmanpages -i
# dh_undocumented -i
dh_installchangelogs -i ChangeLog
dh_link -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
dh_movefiles -a
# The system libtool script in Debian installations must be able
# to support G++ invocations via the "g++" and "c++" program
# names.
# sed -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: CXX$$/,/^# ### END LIBTOOL TAG CONFIG: CXX$$/p' < libtool | sed -e 's/CONFIG: CXX/CONFIG: CXX2/g' -e 's/g++/c++/' >> debian/libtool/usr/bin/libtool
# cd debian/libtool/usr/bin; \
# sed -e 's/available_tags\(.*CXX\)/available_tags\1 CXX2/' libtool > libtool.new; \
# mv libtool.new libtool; \
# chmod 755 libtool
# Remove the extra copy of COPYING.LIB, and just link to shared one.
cd debian/libtool/usr/share/libtool/libltdl; \
rm COPYING.LIB; \
ln -sf ../../common-licenses/LGPL COPYING.LIB
# dh_testversion
dh_testdir -a
# dh_testroot -a
dh_installdocs -plibtool
dh_installdocs -plibltdl3
mkdir -p debian/libltdl3-dev/usr/share/doc
cd debian/libltdl3-dev/usr/share/doc; ln -sf libltdl3 libltdl3-dev
# dh_installexamples -a
# dh_installmenu -a
# dh_installemacsen -a
# dh_installinit -a
# dh_installcron -a
dh_installmanpages -plibtool
# dh_undocumented
dh_installchangelogs -plibtool
dh_installchangelogs -plibltdl3 ChangeLog
dh_strip -a
dh_link -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_makeshlibs -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
# Pull in the latest config.{sub,guess} scripts from the autotools-dev
# package.
use-autotools:
-for file in config.sub config.guess ; do \
if test -r /usr/share/misc/$$file && ! diff -s /usr/share/misc/$$file $$file; then \
cp -f /usr/share/misc/$$file $$file ;\
fi; \
done
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|