* org-mode and/versus make/makefiles
@ 2014-06-11 19:24 Greg Minshall
2014-06-11 20:00 ` Grant Rettke
0 siblings, 1 reply; 2+ messages in thread
From: Greg Minshall @ 2014-06-11 19:24 UTC (permalink / raw)
To: emacs-orgmode
hi, all.
if this is out of scope, or likely to be too much of a rat hole, please
let me know (and otherwise ignore).
occasionally, i work on something complicated enough that i feel the
need of using make to manage dependencies, allow for cleaning up working
directories (via "make clean" functionality), and generally organize the
structure of my project (by forcing me to specify the various input
files, output files ("targets"), and processes).
but, when this happens, i have a hard time splitting the
responsibilities for various parts of my build process between the
makefile and the .org file. for example, i very much like writing small
scripts in my .org file, rather than as stand-alone files. but, then if
i decide to migrate the output of that script to the makefile, i have to
split out the script to a separate file (and thus lose, or obfuscate,
whatever version control history i have of that script).
as another example, occasionally i feel i should have the .org file call
out to the makefile, either to build something, or to retrieve some
shared parameter (second-normal-form obsessiveness). or, have the
makefile call the .org file, via some mechanism i've not explored, for
similar reasons. then, if i have one calling the other calling the
first...
i'm wondering if anyone else, having wrestled with these issues, has any
recipes for some approximation of happiness. or, some totally different
approach i'm too set in my ways to see.
cheers, Greg Minshall
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-mode and/versus make/makefiles
2014-06-11 19:24 org-mode and/versus make/makefiles Greg Minshall
@ 2014-06-11 20:00 ` Grant Rettke
0 siblings, 0 replies; 2+ messages in thread
From: Grant Rettke @ 2014-06-11 20:00 UTC (permalink / raw)
To: Greg Minshall; +Cc: emacs-orgmode@gnu.org
On Wed, Jun 11, 2014 at 2:24 PM, Greg Minshall <minshall@acm.org> wrote:
> i'm wondering if anyone else, having wrestled with these issues,
Yes.
> has any recipes for some approximation of happiness. or, some totally different
> approach i'm too set in my ways to see.
For me it has been the same approach defined in the macro writers handbook:
1. Do it manually until I know how it works.
2. Make sure that it works well in a couple other places.
3. Automate it
Sometimes it is just easier to explain to a human what is happening
when you use a makefile because if you are using noweb references then
you've already got a lot on your cognitive plate. My build is kind of
basic, but it depends upon your perspective.
The Makefile just makes it crystal clear, it prepares the document for
tangling or does the weaving, nothing more, and for now that works
fine.
Use the best tool for the job, by your definition.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-11 20:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 19:24 org-mode and/versus make/makefiles Greg Minshall
2014-06-11 20:00 ` Grant Rettke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).