Rev 7785 | 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-1999 by Douglas M. Bates <bates@stat.wisc.edu>package=r-basedebbase := $(shell pwd)/debiandebtmp := $(debbase)/tmpdebdoc := $(debtmp)/usr/share/doc/$(package)# edd 10 Feb 98 See section 4.1 of Policy Manualarch = $(shell dpkg --print-architecture)-linuxbuild: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 foundSHLIBLDFLAGS='-shared -lc' ./configure --prefix=/usr \--with-g77 \--mandir=$(debtmp)/usr/share/man \--host $(arch)makemake helpmake htmltouch buildclean:dh_testdir-rm -f build-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# Build architecture-independent files here.binary-indep: build# We have nothing to do by default.# Build architecture-dependent files here.binary-arch: builddh_testdirdh_testrootdh_clean -kdh_installdirsmake; make check info pdf; make install 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 filesrm -v $(debtmp)/usr/lib/R/library/base/help/license \$(debtmp)/usr/lib/R/library/base/latex/license.tex \$(debtmp)/usr/lib/R/COPYINGdh_installdocs BUGS Y2Kdh_installinfo doc/manual/R-*.info*(cd $(debdoc)/doc && ln -s ../../../../lib/R/doc/html .)(cd $(debdoc) && ln -s ../../../lib/R/library .)dh_installmenudh_installmanpages re_format.7 regex.3 getline.3dh_installchangelogs NEWSdh_stripdh_compressdh_fixpermsdh_installdebdh_shlibdepsdh_gencontroldh_makeshlibsdh_md5sums -X'usr/bin/R' -XLibIndex -Xindex.txt -Xfunction.html -Xpackages.htmldh_builddeb# Below here is fairly generic reallybinary: binary-indep binary-arch.PHONY: binary binary-arch binary-indep clean checkroot