PATTON, BILLY (SBCSI) wrote:
Originally I tried
include /some_path/gmsl

It gave me a warning of something like cannot find __gmsl

Actually I have a solution to that problem that I've just checked into CVS for GMSL and will be in the next release. If you replace the line

    include __gmsl

in the gmsl file with:

    __gmsl_root := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))

    ifeq (1,$(words $(__gmsl_root)))
    __gmsl_root := $(patsubst %gmsl,%,$(__gmsl_root))
    else
    __gmsl_root :=
    endif

    include $(__gmsl_root)__gmsl

Then the problem goes away because the gmsl Makefile is able to cope with you having written include /foo/gmsl and will automatically figure out where __gmsl is.

John.



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
  • gmsl PATTON, BILLY \(SBCSI\)
    • Re: gmsl John Graham-Cumming
    • RE: gmsl PATTON, BILLY \(SBCSI\)
      • Re: gmsl John Graham-Cumming

Reply via email to