%% Kanna Potharlanka <[EMAIL PROTECTED]> writes:

  kp> I am trying to do the following in my Makefile.

  kp> BUILD_DIR = `current_tag`
  kp> include $BUILD_DIR/Makefile.inc

I'm assuming your makefile actually says "include $(BUILD_DIR)/Makefile.inc"

This won't work: make does not expand backquotes.  Backquotes are a
shell feature, not a make feature.

If you're using GNU make you can use the $(shell ...) function:

  BUILD_DIR := $(shell current_tag)

This is not portable to other versions of make of course.

-- 
-------------------------------------------------------------------------------
 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://mail.gnu.org/mailman/listinfo/help-make

Reply via email to