#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Build export ANT=ant export BASEDIR=../.. configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. #-$(ANT) -file $(BASEDIR)/build.xml rebuild touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. #-$(ANT) -file $(BASEDIR)/build.xml clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/sip-communicator. cp debian/sip-communicator-32.xpm debian/sip-communicator/usr/share/pixmaps/ cp debian/sip-communicator-16.xpm debian/sip-communicator/usr/share/pixmaps/ cp debian/sip-communicator.svg debian/sip-communicator/usr/share/pixmaps/ cp debian/sip-communicator.desktop debian/sip-communicator/usr/share/applications/ # Copy all libs cp $(BASEDIR)/lib/*.jar debian/sip-communicator/usr/lib/sip-communicator/lib/ cp $(BASEDIR)/resources/install/logging.properties debian/sip-communicator/usr/lib/sip-communicator/lib/ cp $(BASEDIR)/lib/felix.client.run.properties debian/sip-communicator/usr/lib/sip-communicator/lib/ cp -r $(BASEDIR)/lib/bundle debian/sip-communicator/usr/lib/sip-communicator/lib/ # Copy OS specific and native libs cp $(BASEDIR)/lib/os-specific/linux/*.jar debian/sip-communicator/usr/lib/sip-communicator/lib/ cp -r $(BASEDIR)/lib/native/linux debian/sip-communicator/usr/lib/sip-communicator/lib/native # Copy SIP Communicator bundles cp $(BASEDIR)/sc-bundles/*.jar debian/sip-communicator/usr/lib/sip-communicator/sc-bundles cp $(BASEDIR)/sc-bundles/os-specific/linux/*.jar debian/sip-communicator/usr/lib/sip-communicator/sc-bundles install -m 755 debian/sip-communicator.sh debian/sip-communicator/usr/bin/sip-communicator # Remove all slicks, SVN info and unnecessary librairies. rm debian/sip-communicator/usr/lib/sip-communicator/sc-bundles/*-slick.jar rm -rf debian/sip-communicator/usr/lib/sip-communicator/lib/native/.svn rm -rf debian/sip-communicator/usr/lib/sip-communicator/lib/bundle/.svn rm debian/sip-communicator/usr/lib/sip-communicator/lib/bundle/junit.jar # Make felix deploy its bundles in ~/.felix/sip-communicator.bin sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" debian/sip-communicator/usr/lib/sip-communicator/lib/felix.client.run.properties # Build i386 files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples # dh_install dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman debian/sip-communicator.1 dh_link dh_compress dh_fixperms dh_strip # dh_perl # dh_makeshlibs dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch .PHONY: build clean binary-arch binary install configure