PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/working/auteur/src/Makevars

http://github.com/eastman/auteur
#! | 27 lines | 24 code | 3 blank | 0 comment | 0 complexity | afae301660ceda0e14cafbad59ca2950 MD5 | raw file
 1## Use the R_HOME indirection to support installations of multiple R version
 2PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()" )
 3
 4## As an alternative, one can also add this code in a file 'configure'
 5##
 6##    PKG_LIBS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"`
 7## 
 8##    sed -e "s|@PKG_LIBS@|${PKG_LIBS}|" \
 9##        src/Makevars.in > src/Makevars
10## 
11## which together with the following file 'src/Makevars.in'
12##
13##    PKG_LIBS = @PKG_LIBS@
14##
15## can be used to create src/Makevars dynamically. This scheme is more
16## powerful and can be expanded to also check for and link with other
17## libraries.  It should be complemented by a file 'cleanup'
18##
19##    rm src/Makevars
20##
21## which removes the autogenerated file src/Makevars. 
22##
23## Of course, autoconf can also be used to write configure files. This is
24## done by a number of packages, but recommended only for more advanced users
25## comfortable with autoconf and its related tools.
26
27