Find the answer to your Linux question:
Results 1 to 2 of 2
I have written a Makefile for a small module, But I am getting the following error. make -C /lib/modules/2.6.15-28-amd64-server/build M=(PWD) modules /bin/sh: -c: line 0: syntax error near unexpected token ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! vijay_kernel's Avatar
    Join Date
    Apr 2007
    Posts
    77

    Makefile error


    I have written a Makefile for a small module, But I am getting the following error.

    make -C /lib/modules/2.6.15-28-amd64-server/build M=(PWD) modules
    /bin/sh: -c: line 0: syntax error near unexpected token `('
    /bin/sh: -c: line 0: `make -C /lib/modules/2.6.15-28-amd64-server/build M=(PWD) modules'
    make: *** [all] Error 2


    Any help would be appreciated....

    Thanks.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Replace:
    Code:
    M=(PWD)
    with:
    Code:
    M=$(PWD)
    Regards

Posting Permissions

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