aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/app.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-06 23:45:56 +0200
committerLoïc Hoguin <[email protected]>2015-09-06 23:45:56 +0200
commit6e50b405d71b4e144f7a7629501e4ebe2139d432 (patch)
tree5d51b05b0392b245aa45c36ed530adec6cba5a0f /doc/src/guide/app.asciidoc
parent84cffff9f735f04dab0bbfe755c05ec252342a46 (diff)
downloaderlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.tar.gz
erlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.tar.bz2
erlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.zip
Add NO_MAKEDEP: don't rebuild .d file if it already exists
This is useful only for projects that are stable and rarely need to rebuild it. Check the guide additions for more info.
Diffstat (limited to 'doc/src/guide/app.asciidoc')
-rw-r--r--doc/src/guide/app.asciidoc20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/src/guide/app.asciidoc b/doc/src/guide/app.asciidoc
index df23f76..ec1eb3f 100644
--- a/doc/src/guide/app.asciidoc
+++ b/doc/src/guide/app.asciidoc
@@ -235,6 +235,26 @@ transforms have changed. Erlang.mk also automatically keeps
track of which files should be compiled first, for example
when you have behaviors used by other modules in your project.
+If your project is stable, you may want to disable generating
+the dependency tracking file every time you compile. You can
+do this by adding the following line to your 'Makefile':
+
+[source,make]
+NO_MAKEDEP ?= 1
+
+As you can see, the snippet above uses `?=` instead of a
+simple equal sign. This is to allow you to temporarily override
+this value when you do make substantial changes to your project
+(including a new header file, new module with dependencies, etc.)
+and want to rebuild the dependency tracking file. You'll be
+able to use the following command:
+
+[source,bash]
+$ NO_MAKEDEP= make
+
+Otherwise, `make clean app` will of course force the
+recompilation of your project.
+
Erlang.mk can also keep track of the source files generated
by other means, for example if you generate code from a data
file in your repository.