Results 1 to 5 of 5

Thread: Makefile using Google's ratproxy

  1. #1

    Default Makefile using Google's ratproxy

    Hello, I'm trying to build google's ratproxy tool but when I run the Makefile, I get the following errors:

    ./Makefile: line 22: PROGNAME: command not found
    ./Makefile: line 23: CFLAGS: command not found
    ./Makefile: line 24: LDFLAGS: command not found
    ./Makefile: line 26: all:: command not found

    and it complains about PROGNAME a few more times...
    andydaykin.com

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Makefile using Google's ratproxy

    Makefiles are not run directly but by running the command "make" in the same directory, which will read the Makefile.

  3. #3

    Default Re: Makefile using Google's ratproxy

    So how would I run it? I did make Makefile and it said "Nothing to be done for 'Makefile'"
    andydaykin.com

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Makefile using Google's ratproxy

    That would mean that the default target is already up to date. If you wanted to build something other than the default target (the first target in the Makefile), you would say

    Code:
    make target
    You'd have to read the docs that came with the package.

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Makefile using Google's ratproxy

    Quote Originally Posted by adaykin View Post
    So how would I run it? I did make Makefile and it said "Nothing to be done for 'Makefile'"
    Ah, I see what you;ve done wrong. You don't say make Makefile. That's saying to make, I want you to make the Makefile using the rules in the Makefile. You just say make and make implicitly makes the default target.

    So either just

    Code:
    make
    or

    Code:
    make target
    Usually the first target is called all so this is equivalent:

    Code:
    make all

Posting Permissions

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