2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Christoph Lameter.
5 # $Id: rules,v 1.5 1999/02/03 21:05:48 jgg Exp $
8 # Uncomment this to turn on verbose mode.
12 build-stamp
: configure
15 cd build
; ..
/configure
17 # cd build && CXXFLAGS="-g -Wall -D_POSIX_C_SOURCE=199309" ../configure --disable-nls --disable-static --prefix=/usr
18 # cd build && make all-hdr
21 # Add here commands to compile the package.
31 # Add here commands to clean up after the build process.
36 # Build architecture-independent files here.
37 binary-indep
: build libapt-pkg-doc
38 # We have nothing to do by default.
40 # Build architecture-dependent files here.
41 binary-arch
: build apt libapt-pkg-dev
44 # dh_testversion -papt
48 dh_installdirs
-papt usr
/bin usr
/lib
/apt
/methods usr
/lib
/dpkg
/methods
/apt etc
/apt usr
/doc
/apt var
/cache
/apt
/archives
/partial var
/state
/apt
/lists
/partial
50 cp build
/bin
/apt-
* debian
/tmp
/usr
/bin
/
52 # install the shared libs
53 find build
/bin
/ -type f
-name
"libapt-pkg.so.*" -exec cp
-a
"{}" debian
/tmp
/usr
/lib
/ \
;
54 find build
/bin
/ -type l
-name
"libapt-pkg.so.*" -exec cp
-a
"{}" debian
/tmp
/usr
/lib
/ \
;
56 cp build
/bin
/methods
/* debian
/tmp
/usr
/lib
/apt
/methods
/
58 cp build
/scripts
/dselect
/* debian
/tmp
/usr
/lib
/dpkg
/methods
/apt
/
59 # cp debian/sources.list debian/tmp/etc/apt/
61 cp build
/docs
/guide.text debian
/tmp
/usr
/doc
/apt
/users-guide.txt
62 mkdir debian
/tmp
/usr
/doc
/apt
/users-guide.html
/
63 cp
-a build
/docs
/guide.html
/* debian
/tmp
/usr
/doc
/apt
/users-guide.html
/
64 cp
-a debian
/dhelp debian
/tmp
/usr
/doc
/apt
/.dhelp
66 # head -n 500 ChangeLog > debian/ChangeLog
69 dh_installexamples
-papt build
/docs
/examples
/*
70 # dh_installmenu -papt
71 # dh_installinit -papt
72 # dh_installcron -papt
73 dh_installmanpages
-papt
75 # dh_undocumented -papt
76 dh_installchangelogs
-papt
82 LD_LIBRARY_PATH
=debian
/tmp
/usr
/lib dh_shlibdeps
-papt
89 dh_testdir
-plibapt-pkg-dev
90 dh_testroot
-plibapt-pkg-dev
91 dh_clean
-plibapt-pkg-dev
-k
92 dh_installdirs
-plibapt-pkg-dev usr
/lib usr
/include/apt-pkg
94 ln
-s libapt-pkg.so
.2.0 debian
/libapt-pkg-dev
/usr
/lib
/libapt-pkg.so
96 cp build
/include/apt-pkg
/*.h debian
/libapt-pkg-dev
/usr
/include/apt-pkg
/
98 dh_installdocs
-plibapt-pkg-dev
99 dh_installchangelogs
-plibapt-pkg-dev
100 dh_strip
-plibapt-pkg-dev
101 dh_compress
-plibapt-pkg-dev
102 dh_fixperms
-plibapt-pkg-dev
103 dh_installdeb
-plibapt-pkg-dev
104 dh_shlibdeps
-plibapt-pkg-dev
105 dh_gencontrol
-plibapt-pkg-dev
106 dh_md5sums
-plibapt-pkg-dev
107 dh_builddeb
-plibapt-pkg-dev
109 libapt-pkg-doc
: build
110 dh_testdir
-plibapt-pkg-doc
111 dh_testroot
-plibapt-pkg-doc
112 dh_clean
-plibapt-pkg-doc
-k
113 dh_installdirs
-plibapt-pkg-doc usr
/doc
/apt usr
/doc
/libapt-pkg-doc
115 cp
-a build
/docs
/cache
* build
/docs
/design
* build
/docs
/dpkg-tech
* \
116 build
/docs
/files
* build
/docs
/method
* debian
/libapt-pkg-doc
/usr
/doc
/apt
/
117 cp
-a debian
/libapt-pkg-doc.dhelp debian
/libapt-pkg-doc
/usr
/doc
/libapt-pkg-doc
/.dhelp
119 dh_installdocs
-plibapt-pkg-doc
120 dh_installchangelogs
-plibapt-pkg-doc
121 dh_strip
-plibapt-pkg-doc
122 dh_compress
-plibapt-pkg-doc
123 dh_fixperms
-plibapt-pkg-doc
124 dh_installdeb
-plibapt-pkg-doc
125 dh_shlibdeps
-plibapt-pkg-doc
126 dh_gencontrol
-plibapt-pkg-doc
127 dh_md5sums
-plibapt-pkg-doc
128 dh_builddeb
-plibapt-pkg-doc
131 @echo
>&2 'source and diff are obsolete - use dpkg-source -b'; false
138 # Update from CVS and then configure for build
139 super-l33ch
: l33ch Makefile.in
144 l33ch-stamp
: super-l33ch
148 -find
-name Makefile.in
-print0 | xargs
-0r
rm -f
149 find
-name ChangeLog | xargs
rm -f
152 binary
: binary-indep binary-arch
153 .PHONY
: build
clean binary-indep binary-arch binary