Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5977653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:24:07+00:00 2026-05-22T21:24:07+00:00

http://www.cprogramming.com/tutorial/makefiles_continued.html explains implicit targets: There are some actions that are nearly ubiquitous: for instance,

  • 0

http://www.cprogramming.com/tutorial/makefiles_continued.html explains implicit targets:

There are some actions that are nearly ubiquitous: for instance, you might have a collection of .c files that you may wish to execute the same command for. Ideally, the name of the file would be the target; using the implicit target “.c” you can specify a command to execute for any target that corresponds to the name of a .c file (minus the .c extension).

However, when I try it, the implicit target is simply ignored. My test makefile is as follows:

Default: Foo.bar
    echo "In default."

.bar:
    echo "In .bar."

make: *** No rule to make target `Foo.bar', needed by `Default'.  Stop.

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:24:07+00:00Added an answer on May 22, 2026 at 9:24 pm

    Try:

    default: foo.bar
        echo "In default."
    
    %.bar:
        echo "In .bar."
    

    You may be asking about old-style suffix rules – for example this rule:

    .c.o:
        cc -c $<
    

    tells make how to build a .o file from a .c source. The form with the ‘%’ is known as a pattern rules and is more “modern”. I suggest you read the GNU Make manual, which is very informative about such stuff, and easy to read.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following the C programming tutorial at http://www.cprogramming.com/tutorial/c/lesson10.html . This particular tutorial teaches
http://www.codeplex.com/IIRF/Thread/List.aspx My webhost installed IIRF for me and I am convinced that they did
http://www.ddrewdesign.com/portfolio/ I've run that on three different VMs and my brother's regular (and very
According to http://www.reddit.com/r/programming/comments/gwqa2/the_real_point_of_laziness/c1rslxk Some algorithms don't terminate in an eager language, that do in
I'm working on a Scala-based analytics system (http://www.hiringthing.com), and I'm finding that I'm often
I've just completed a tutorial on C# language syntax from http://www.csharp-station.com/Tutorial.aspx I'd like to
I tried a file upload to my amazon s3 refering this tutorial http://www.anyexample.com/programming/php/uploading_files_to_amazon_s3_with_rest_api.xml But
As mentioned in this tutorial: http://www.learncpp.com/cpp-tutorial/79-the-stack-and-the-heap/ In computer programming, a stack is a container
i've been programming a while in D (http://www.digitalmars.com/d/) now. I prefer it to Java
There are a bunch of different Scheme interpreters available for the Mac: http://www.dmoz.org/Computers/Programming/Languages/Lisp/Scheme/Implementations/ Which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.