Wednesday, December 19, 2012

Makefile humor

Currently doing a project that involves compiling fortran files to run from python, using the f2py module. The central fortran subroutine has a call to a debug option, which spits out *.dat files describing what's going on under the hood.

From a workflow perspective, I decided that it would be neat to be able to include a "clean" option in the makefile for removing data files associated with debugging, without doing the other things that a typical "make clean" command does (removing module libraries, etc). Naturally, I named this option "datclean". Only a few hours later did I realize what I had done:
  make datclean

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.