Find the answer to your Linux question:
Results 1 to 5 of 5
I'm little familiar with Makefile. But what is a .mk file? How to run a .mk file? What is the difference between .mk file and a Makefile?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    10

    Regarding .mk files


    I'm little familiar with Makefile.
    But what is a .mk file?
    How to run a .mk file?
    What is the difference between .mk file and a Makefile?

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by dhivya34 View Post
    What is the difference between .mk file and a Makefile?
    I might be wrong (wouldn't be the first time), but .mk is simply the file extension for a Makefile.
    How to run a .mk file?
    Depends on the script, but usually:
    Code:
    make
    make install
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    153
    Hmm, I googled it as I had not heard of this extension. Makefiles don't typically have extensions. MK File Extension - Open .MK files
    Last edited by kurtdriver; 10-06-2012 at 08:51 AM. Reason: remove the silly bit.

  4. #4
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Everything in a Linux system is a file.
    What is MK? What Opens a MK? File Format List from WhatIs.com
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  5. #5
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    645
    Quote Originally Posted by dhivya34 View Post
    I'm little familiar with Makefile.
    But what is a .mk file?
    How to run a .mk file?
    What is the difference between .mk file and a Makefile?
    In UNIX, the make program looks for the file named "makefile". When GNU MAKE was created (for UNIX), it looks for two make file names (without using an option). The first is "Makefile" (to not conflict with the normal UNIX file) and the falls back to "makefile". In both UNIX and Linux there is not really a file extension. What you might link of as an extension name is simply part of the filename. That being said, some program such as "make" make use of "regular expressions" for the determining the way the file is to be processed. They even have rules that be extended that work on names that end in a "regular expression" into a file that ends with a new "regular expression". Most people when writing a makefile, tends to think about these regular expressions as extension names.

    The use of something that represents a file extension is really just a practice that aids the user. Well this was true until using a desktop environment when you can tell it how to treat a regular expression at the end of the filename to some action.

Posting Permissions

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