gnu: openfoam: Clean up to reduce closure.

This saves ~1GB.

* gnu/packages/simulation.scm (openfoam)[outputs]: Add debug.
[arguments]: Clean up .o and src after build.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Dave Love 2017-10-21 17:20:42 +01:00 committed by Ludovic Courtès
parent 6101cad4d1
commit f1de0e37d5
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 0 deletions

View File

@ -84,6 +84,8 @@
`(("gzip" ,gzip)
("gnuplot" ,gnuplot)
("openmpi" ,openmpi)))
(outputs '("debug" ;~60MB
"out"))
(arguments
`( ;; Executable files and shared libraries are located in the 'platforms'
;; subdirectory.
@ -171,6 +173,15 @@
(("lockDir=.*$")
"lockDir=$HOME/.$WM_PROJECT/.wmake\n"))
#t))
(add-after 'build 'cleanup
;; Avoid unncessary, voluminous object and dep files.
(lambda _
(delete-file-recursively
"platforms/linux64GccDPInt32Opt/src")
(delete-file-recursively
"platforms/linux64GccDPInt32OptSYSTEMOPENMPI")
(for-each delete-file (find-files "." "\\.o$"))
#t))
(replace 'install
(lambda _
;; use 'OpenFOAM-version' convention