1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for the Debian/GNU Linux r-cran-quantlib package
# Copyright 2003 - 2015 by Dirk Eddelbuettel <edd@debian.org>
include /usr/share/R/debian/r-cran.mk
makeFlags := "CXXFLAGS=-g0"
ifneq "$(makeFlags)" ""
makeFlagsCall := MAKEFLAGS=$(makeFlags)
endif
builttime := $(shell dpkg-parsechangelog | awk -F': ' '/Date/ {print $$2}')
## override R_any_arch here do pass CXXFLAGS
R_any_arch:
## create the target directory
dh_installdirs usr/lib/R/site-library
## call R to install the sources we're looking at
## dial down CXXFLAGS
$(makeFlagsCall) \
R CMD INSTALL -l $(debRlib) --clean --built-timestamp="${builttime}" .
## remove extra files which are present in some packages
rm -vf $(debRlib)/R.css \
$(debRlib)/$(cranName)/COPYING \
$(debRlib)/$(cranName)/LICENSE.txt
|