Rev 15693 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/usr/bin/make -f# debian/rules file for the Debian GNU/Linux r-base package# Copyright 1997-2001 by Douglas M. Bates <bates@stat.wisc.edu>package = r-basepdfpackage = r-doc-pdfgnomepackage = r-gnomedebbase := $(shell pwd)/debiandebtmp := $(debbase)/tmpdebdoc := $(debtmp)/usr/share/doc/$(package)# set this to 0 if you don't want Gnome packagesgnome = 1ifeq ($(gnome),0)gnomeconfig = --without-gnomeelsegnomeconfig = --with-gnomeendif# edd 10 Feb 98 See section 4.1 of Policy Manualarch := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)# Uncomment this to turn on verbose mode.#export DH_VERBOSE=1# This is the debhelper compatability version to use.export DH_COMPAT=1# This has to be exported to make some magic below work.export DH_OPTIONS# edd 15 Aug 2001: default to blas, atlas can override itatlas = --with-blas=blasbuild: build-stamp configure-stamp make-stampbuild-stamp: configure maketouch build-stampconfigure: configure-stampconfigure-stamp:dh_testdirR_UNZIPCMD=/usr/bin/miniunzip R_ZIPCMD=/usr/bin/minizip \./configure --prefix=/usr \--with-g77 \--with-tcltk \--mandir=$(debtmp)/usr/share/man \$(atlas) \$(gnomeconfig) \--enable-R-profiling \--enable-R-shlib \--host $(arch)touch configure-stampmake: make-stampmake-stamp:makemake checkmake helpmake htmlmake infomake pdftouch make-stampclean:dh_testdirdh_testrootrm -f build-stamp configure-stamp make-stamp-make distclean-rm -f `find . -name "*~"`-rm -rf debian/tmp debian/files* core debian/substvars-rm -f doc/html/function.html doc/html/packages.html-rm -f modules/*.sodh_cleaninstall: DH_OPTIONS=install: builddh_testdirdh_testrootdh_clean -kdh_installdirs# Add here commands to install the package into debian/tmp.#$(MAKE) prefix=`pwd`/debian/tmp/usr installmakemake checkmake install prefix=`pwd`/debian/tmp/usrmake install-pdf prefix=`pwd`/debian/tmp/usrsed -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \< bin/R > debian/tmp/usr/bin/Rsed -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \< bin/R > debian/tmp/usr/lib/R/bin/R# remove unneeded license filerm -v $(debtmp)/usr/lib/R/COPYING# move the pdf files into the arch-indep. packagedh_movefiles -p$(pdfpackage) usr/lib/R/doc/manual/*.pdfifneq ($(gnome),0)# move the GNOME version to the r-gnome packagedh_movefiles -p$(gnomepackage) usr/lib/R/modules/R_gnome.soendif# Build architecture-independent files here.# Pass -i to all debhelper commands in this target to reduce clutter.binary-indep: DH_OPTIONS=-ibinary-indep: build install# Need this version of debhelper for DH_OPTIONS to work.dh_testversion 1.1.17dh_testdirdh_testroot# dh_installdebconfdh_installdocsdh_installexamplesdh_installmenu# dh_installemacsen# dh_installpam# dh_installmime# dh_installinitdh_installcron# dh_installmanpagesdh_installinfo# dh_undocumenteddh_installchangelogs NEWSdh_linkdh_compressdh_fixperms# You may want to make some executables suid here.# dh_suidregisterdh_installdeb# dh_perldh_gencontroldh_md5sumsdh_builddeb# Build architecture-dependent files here.# Pass -a to all debhelper commands in this target to reduce clutter.binary-arch: DH_OPTIONS=-abinary-arch: build install# Need this version of debhelper for DH_OPTIONS to work.dh_testversion 1.1.17dh_testdirdh_testroot# dh_installdebconfdh_installdocs BUGS Y2Kdh_installdocs -p$(package) debian/README.Atlasdh_installexamplesdh_installmenu# dh_installemacsen# dh_installpam# dh_installmime# dh_installinitdh_installcrondh_installmanpages -N$(gnomepackage) -p$(package) getline.3dh_installinfo -n doc/manual/R-*.info*(cd $(debdoc)/doc && ln -s ../../../../lib/R/doc/html .)(cd $(debdoc)/doc && ln -s ../../../../lib/R/doc/manual .)(cd $(debdoc) && ln -s ../../../lib/R/library .)# install lintian "silencer"install -p -m 0644 debian/$(package).lintian \$(debtmp)/usr/share/lintian/overrides/$(package)# dh_undocumenteddh_installchangelogs NEWSdh_stripdh_linkdh_compressdh_fixperms# You may want to make some executables suid here.# dh_suidregisterdh_installdeb# dh_makeshlibs# dh_perldh_shlibdepsdh_gencontroldh_md5sums -X'usr/bin/R' -XLibIndex -Xindex.txt \-Xfunction.html -Xpackages.htmldh_builddebbinary: binary-indep binary-arch.PHONY: build clean binary-indep binary-arch binary install