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 95851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:43:22+00:00 2026-05-10T23:43:22+00:00

I have been learning to use Emacs for a little while now. So far

  • 0

I have been learning to use Emacs for a little while now. So far liking it a lot.

My problem is that for little C codes I prefer using Rake instead of Make. However flymake does not seem to want anything else than Make. As it complains that it can not find Makefile. From the command line Rake is used in the same way as Make so I was wondering if there was some emacs configuration I could enter to allow Rake to be used by flymake?

To correct a bit what I am doing. I’m not actually editing a Rakefile. And flymake-ruby does not help at all. I’m working with C code. I just use RAKE to compile the c code using gcc instead of MAKE.

  • 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. 2026-05-10T23:43:23+00:00Added an answer on May 10, 2026 at 11:43 pm

    Right, got it now; sorry about the earlier confusion.

    Taking a quick look through flymake.el, for *.c files, the ‘make’ invocation ultimately comes from here:

    (defun flymake-get-make-cmdline (source base-dir)   (list 'make'     (list '-s'           '-C'           base-dir           (concat 'CHK_SOURCES=' source)           'SYNTAX_CHECK_MODE=1'           'check-syntax'))) 

    That gets called by flymake-simple-make-init, which is called because that’s what *.c files are mapped to by flymake-allowed-file-name-masks.

    So, the right answer would be to modify flymake-allowed-file-name-masks to map *.c files to a different init defun, then write that defun to call rake the way you want. There are a bunch of those defuns already written for various things, and most of them are pretty short and sweet — so even if you don’t know Emacs Lisp, you could probably get something to work with a minimum of futzing. (The really really right answer would be to change flymake-simple-make-init so that the command name was read from a defcustom variable, then submit that change back upstream…)

    The quick-and-dirty answer, given that you said all you need to do is call ‘rake’ with the same args as ‘make’, would be to grab a copy of flymake.el, stick it early in your load-path, and munge the ‘make’ string in flymake-get-make-cmdline to read ‘rake’ instead. That’ll at least get you to the next step…

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

Sidebar

Related Questions

I have been learning C++ for three months now and in that time created
I have been learning C++ with some books from school that are from the
In a progression of languages, I have been learning C and C++. Now I
I've been learning Lisp to expand my horizons because I have heard that it
I have been working on an application in Xcode for a while now and
I have been learning about the basics of C# but haven't come across a
I have been learning more and more javascript; it's a necessity at my job.
WARNING: I have been learning Python for all of 10 minutes so apologies for
I come from classes object orientation languages and recently I have been learning those
I have been slowly learning SQL the last few weeks. I've picked up all

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.