# Compile a macro without running?

**URL:** <https://root-forum.cern.ch/t/compile-a-macro-without-running/14759>\
**Category:** ROOT\
**Created:** [August 14, 2012, 9:00pm UTC](https://root-forum.cern.ch/t/compile-a-macro-without-running/14759 "2012-08-14T21:00:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jfcaron](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jfcaron](https://root-forum.cern.ch/u/jfcaron)\
**Post date:** [August 14, 2012, 9:00pm UTC](https://root-forum.cern.ch/t/compile-a-macro-without-running/14759/1 "2012-08-14T21:00:27Z")

</div>

Hello, I normally run my macros with a command like

```auto

```

which compiles the macro if the source has changed and then exectutes the function mymacro(parameter). Is there a way to separate the two actions, to compile separately without actually executing the macro? I know that from inside a root session I can do .L mymacro.C+, but what about from the command line outside of root?

Thanks.

---

_[View the full topic](https://root-forum.cern.ch/t/compile-a-macro-without-running/14759)._
