Results 1 to 2 of 2

Thread: How to include/use environment setup file in makefile

  1. #1
    Join Date
    Jun 2019
    Beans
    4

    How to include/use environment setup file in makefile

    I'm looking at cross-compiling for Raspberry PI

    I would like to do something like this in a Makefile:
    TOOLPATH=/opt/toolpath
    include $(TOOLPATH)/environment-setup-aarch64

    When trying to run make, I get an error:
    /opt/toolpath/environment-setup-aarch64:5: *** missing separator. Stop.



    I'm guessing this is the wrong way to do this. Is there a way to use the environment-setup-aarch64 from within the makefile?

    ("Normal use" is to run the script before calling the makefile, but I am trying to automate things as much as possible, and doing this within the Makefile would be very useful for my activity)

    Thanks!

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to include/use environment setup file in makefile

    The error appears to be on line 5 of the environment-setup-aarch64 file.
    Fix that.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •