View Single Post
Posts: 145 | Thanked: 304 times | Joined on Jan 2010 @ Milton Keynes, UK
#9
Thanks Rontti,

sorry my message didn't have more detail, I wrote it at 1am after 5 hours of trying and was too tired to make much sense

anyway, you're example for the makefile is brilliant and makes sense but the created .deb file still doesn't contain the binary.

Thanks again, and thanks in advance if you can help me out a bit more.

here is my makefile

Code:
all:
	gcc -g -Wall `sdl-config --cflags` `sdl-config --libs` -L /usr/include/SDL -lSDL_image delite.c -o de-lite

install:
	mkdir -p $(DESTDIR)/usr/bin
	cp de-lite $(DESTDIR)/usr/bin

and here is the results of the dpkg-package are:
Code:
dpkg-buildpackage: source package is de-lite
dpkg-buildpackage: source version is 1.0.0-1
dpkg-buildpackage: source changed by Jamie Fuller <me@jamiefuller.com>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 1.0.0-1
: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/jamie/de-lite-1.0.0'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/home/jamie/de-lite-1.0.0'
make: [clean] Error 2 (ignored)
dh_clean 
 dpkg-source -b de-lite-1.0.0
dpkg-source: building de-lite in de-lite_1.0.0-1.tar.gz
dpkg-source: building de-lite in de-lite_1.0.0-1.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
dh_installdirs
##gcc -g -Wall `sdl-config --cflags` `sdl-config --libs` -L /usr/include/SDL -lSDL_image delite.c -o de-lite
/scratchbox/tools/bin/make
make[1]: Entering directory `/home/jamie/de-lite-1.0.0'
gcc -g -Wall `sdl-config --cflags` `sdl-config --libs` -L /usr/include/SDL -lSDL_image delite.c -o de-lite
delite.c: In function 'main':
delite.c:135: warning: implicit declaration of function 'IMG_Load'
delite.c:135: warning: assignment makes pointer from integer without a cast
make[1]: Leaving directory `/home/jamie/de-lite-1.0.0'
#docbook-to-man debian/de-lite.sgml > de-lite.1
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs
# Add here commands to install the package into debian/de-lite.
/scratchbox/tools/bin/make DESTDIR=/home/jamie/de-lite-1.0.0/debian/de-lite install
make[1]: Entering directory `/home/jamie/de-lite-1.0.0'
mkdir -p /home/jamie/de-lite-1.0.0/debian/de-lite/usr/bin
cp de-lite /home/jamie/de-lite-1.0.0/debian/de-lite/usr/bin
make[1]: Leaving directory `/home/jamie/de-lite-1.0.0'
dh_testdir
dh_testroot
dh_installchangelogs 
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
warning, `debian/de-lite/DEBIAN/control' contains user-defined field `Maemo-Icon-26'
dpkg-deb: building package `de-lite' in `../de-lite_1.0.0-1_armel.deb'.
dpkg-deb: ignoring 1 warnings about the control file(s)
 dpkg-genchanges
dpkg-genchanges: warning: unknown information field `Xb-Maemo-Icon-26' in input data in package's section of control info file
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload; Debian-native package (full source is included)