#!/usr/bin/make -f # MAde with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE=sablevm DEVPATH=sablevm-dev TEMP:=$(shell tempfile) config: config-stamp config-stamp: aclocal libtoolize --force ln -sf /usr/share/automake/mkinstalldirs . ln -sf /usr/share/automake/missing . ln -sf /usr/share/automake/install-sh . automake autoheader autoconf ./configure --prefix=/usr touch config-stamp build: build-stamp build-stamp: dh_testdir bash -n debian/sablevm.postinst bash -n debian/sablevm.postrm # The following are not needed (yet) #bash -n debian/sablevm.preinst #bash -n debian/sablevm.prerm $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f config-stamp build-stamp install-stamp -rm -f mkinstalldirs missing install-sh # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_clean -k dh_installdirs -a dh_installdocs -a AUTHORS NEWS README THANKS # Add here commands to install the package into debian/tmp. # $(MAKE) DESTDIR=`pwd`/debian/tmp install # Copy header files, libtool link files, static library, and # soname-less symlnk to the development package. mv `pwd`/debian/tmp/usr/include/*.h `pwd`/debian/$(DEVPATH)/usr/include/sablevm mv `pwd`/debian/tmp/usr/lib/*.a `pwd`/debian/$(DEVPATH)/usr/lib mv `pwd`/debian/tmp/usr/lib/*.la `pwd`/debian/$(DEVPATH)/usr/lib mv `pwd`/debian/tmp/usr/lib/*.so `pwd`/debian/$(DEVPATH)/usr/lib # Remove some non-Debian files -rm -r `pwd`/debian/tmp/usr/share/sablevm touch install-stamp # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install # dh_testversion dh_testdir dh_testroot dh_installdocs -a # dh_installexamples # dh_installmenu # dh_installemacsen # dh_installinit # dh_installcron dh_installman -p sablevm `pwd`/sablevm.1 dh_installdebconf -a # dh_undocumented dh_installchangelogs -a dh_strip -a dh_compress -a dh_fixperms dh_makeshlibs -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a 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