%% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> writes:

  pb> Is there a way that I can do an if statement to avoid generating all the
  pb> targets by looking at the command line?

  pb> something on the line of
  pb> ifeq ($(findstring build,$(MAKEFLAGS)) , build)
  pb> -include make.build
  pb> endif

Look up the MAKECMDGOALS variable in the GNU make manual.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to