Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional subdir-objects

I have option subdir-objects set in configure.ac:

AM_INIT_AUTOMAKE([subdir-objects])

Is there any possibility to conditionally disable it in particular Makefiles (Makefile.am)?

Thanks.

like image 284
Andriy Moroz Avatar asked Jul 11 '12 17:07

Andriy Moroz


1 Answers

According to the list of automake options, no. What you can do instead is remove subdir-objects from the call to AM_INIT_AUTOMAKE and add it to the Makefile.am files where you actually want it. You do that by putting the line AUTOMAKE_OPTIONS = subdir-objects at the top of any relevant Makefile.am. (There's no no-subdir-objects option, apparently.)

like image 90
Jack Kelly Avatar answered Sep 21 '22 05:09

Jack Kelly