'cd' in debian/rules
Matt G.
mattismyname at gmail.com
Mon Mar 31 03:00:54 BST 2008
Hello all,
I'm working on building my first Ubuntu package (A simple graphics
library from my uni:
http://graphics.cs.uiuc.edu/~garland/dist/libgfx-1.1.0-doc/ ).
I am loosely following the procedure in the Complete Packaging Guide
(https://wiki.ubuntu.com/PackagingGuide/Complete ).
I'm up to the point of running debuild but have run into trouble. The
normal build sequence for this library is "./configure; cd src; make".
So, I've edited the debian/rules file that was autogenerated by
dh_make to add the "cd src" command to the build-stamp target right
before the line containing $(MAKE). I also added a 'cd src' command
for the clean target. However, the cd command does not seem to get
executed for build-stamp: or clean:.
matt at Aluminumy:~/Packaging/libgfx/libgfx-debhelper-1.1.0$ debuild
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
# -/usr/bin/make distclean
cd src
/usr/bin/make clean
make[1]: Entering directory
`/home/matt/Packaging/libgfx/libgfx-debhelper-1.1.0'
make[1]: *** No rule to make target `clean'. Stop.
make[1]: Leaving directory `/home/matt/Packaging/libgfx/libgfx-debhelper-1.1.0'
make: [clean] Error 2 (ignored)
cd ..
rm -f config.sub config.guess
dh_clean
dpkg-source -b libgfx-debhelper-1.1.0
dpkg-source: warning: source directory './libgfx-debhelper-1.1.0' is
not <sourcepackage>-<upstreamversion> 'libgfx-1.1.0'
dpkg-source: warning: .orig directory name libgfx-debhelper-1.1.0.orig
is not <package>-<upstreamversion> (wanted libgfx-1.1.0.orig)
dpkg-source: building libgfx using existing libgfx_1.1.0.orig.tar.gz
dpkg-source: building libgfx in libgfx_1.1.0-0ubuntu0.diff.gz
dpkg-source: warning: executable mode 0755 of 'config.status' will not
be represented in diff
dpkg-source: building libgfx in libgfx_1.1.0-0ubuntu0.dsc
debian/rules build
dh_testdir
# Add here commands to compile the package.
cd src
/usr/bin/make
make[1]: Entering directory
`/home/matt/Packaging/libgfx/libgfx-debhelper-1.1.0'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory `/home/matt/Packaging/libgfx/libgfx-debhelper-1.1.0'
make: *** [build-stamp] Error 2
debuild: fatal error at line 1247:
debian/rules build failed
More information about the Ubuntu-motu
mailing list