Try this, please: ----------------------------------------------------------------------------- #!/usr/bin/make -f # -*- makefile -*- # debian/rules file for the Debian/GNU Linux r-cran-fseries package # Copyright 2003-2006 by Dirk Eddelbuettel <[EMAIL PROTECTED]>
include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/langcore.mk # package name, also forced lower case cranName := $(shell grep Package: DESCRIPTION | cut -f2 -d" ") cranNameLC := $(shell echo $(cranName) | tr "[A-Z]" "[a-z]" ) ## which we can use to build the package directory package := r-cran-$(cranNameLC) ## which we use for the to-be-installed-in directory debRlib :=$(CURDIR)/debian/$(package)/usr/lib/R/site-library ## edd 11 Mar 2006 need to special for m68k and its Fortran compiler arch := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) common-install-indep:: R_any_arch common-install-arch:: R_any_arch R_any_arch: dh_installdirs usr/lib/R/site-library ifeq ($(arch),m68k) PKG_FFLAGS="-w -O0" R CMD INSTALL -l $(debRlib) --clean . else R CMD INSTALL -l $(debRlib) --clean . endif rm -vf $(debRlib)/R.css $(debRlib)/*/COPYING ----------------------------------------------------------------------------- Dirk -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]