Rev 11823 | 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-2000 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)# 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_OPTIONSbuild: build-stampbuild-stamp:dh_testdirR_UNZIPCMD=/usr/bin/miniunzip R_ZIPCMD=/usr/bin/minizip\LIBS='-L/usr/lib/atlas'\CFLAGS='-Wall -O2' FFLAGS='-Wall -O2'\PATH=${PATH}:/usr/bin/X11\ # so /usr/bin/X11/imake is foundSHLIB_LDFLAGS='-shared -lc' ./configure --prefix=/usr \--with-g77 \--with-tcltk \--mandir=$(debtmp)/usr/share/man \--with-gnome \--enable-R-profiling \--host $(arch)makemake helpmake htmlmake infomake pdftouch build-stampclean:dh_testdirdh_testrootrm -f build-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.htmldh_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=.*/s::{R_HOME=/usr/lib/R}:' \< bin/R > debian/tmp/usr/bin/Rsed -e '/{R_HOME=.*/s::{R_HOME=/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/*.pdf# move the GNOME version to the r-gnome packagedh_movefiles -p$(gnomepackage) usr/lib/R/gnome# 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_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) && ln -s ../../../lib/R/library .)# 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