login Signup

How can I tell ElectricAccelerator to ignore some paths when using autodep?

I'm using the ElectricAccelerator autodepend feature to generate dependency information for incremental builds. Unfortunately it is overzealous in my case, because it wants to include files from my git repositories in the generated dependencies. The git files all live in .git directories inside my emake root. Is there any way to tell ElectricAccelerator to ignore these files for purposes of autodep?

avatar image By testguy 241 asked May 22, 2012 at 06:10 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

Yes, emake has a "noautodep" pragma which allows you to specify files to exclude from autodepend. You add it immediately before the target that you want the exclusion to apply to. The pragma takes an argument which is a glob-style pattern. Any files that match the pattern will be excluded from autodep consideration. For example:

 #pragma noautodep */.git/*
         # do stuff that might access files in .git.

avatar image By sven ♦♦ 3.3k answered May 22, 2012 at 06:12 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.