6 export build_dir=$(shell pwd)/debian/gnokii
11 # if [ ! -f ./configure ] ; then autoconf ; fi
12 ./configure --prefix=/usr --with-x
13 # ./configure --prefix=/usr --with-x --enable-debug --enable-xdebug --enable-rlpdebug
21 rm -f build build-stamp config.*
26 # Build architecture-independent files here.
29 # There are no architecture-independent files to be uploaded
30 # generated by this package. If there were any they would be
38 # The following two lines are to prevent the install process from installing
39 # mgnokiidev owned by the probably not-yet-existing group "gnokii". mgnokiidev
40 # gets SGID after dpkg runs preinst which creates the group "gnokii".
41 mv utils/Makefile utils/Makefile.ORIG
42 sed 's#-o root -g gnokii -m 4750 ##' < utils/Makefile.ORIG > utils/Makefile
44 make install prefix=$(build_dir)/usr
46 # just to leave the sources in a pristine state...
47 mv utils/Makefile.ORIG utils/Makefile
49 mkdir -p $(build_dir)/etc
50 sed 's#/usr/local/sbin/#/usr/sbin/#' < Docs/sample/gnokiirc > $(build_dir)/etc/gnokiirc
51 # lintian complains if there are multiple licence files in one package, hence
52 # the next two commands
53 sed 's#"COPYING"#"file:/usr/share/doc/gnokii/copyright"#' < \
54 xgnokii/docs/help/en_US/faq.html > \
55 $(build_dir)/usr/share/xgnokii/help/en_US/faq.html
56 rm -f $(build_dir)/usr/share/xgnokii/help/en_US/COPYING
57 # lintian complains if there is a binary that does not have a man page.
58 # Pawel says that xlogos will soon be dumped anyways, so...
59 rm -f $(build_dir)/usr/bin/xlogos
86 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
88 binary: binary-indep binary-arch
89 .PHONY: build clean binary-indep binary-arch binary