Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Makefile error

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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
  •