Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

create_makefile(1) [centos man page]


create_makefile - Creates and Makefile from a SYNOPSIS
create_makefile [relativepath/Makefile] [relativepath] DESCRIPTION
create_makefile creates the and Makefile in a subdirectory containing a This script saves time compared to re-running configure completely Note that you must supply the path to the desired (though the final /Makefile may be omitted). This script may be run from the toplevel directory (the one containing configure) or from one of it's subdirectories. If the source directory is different from the build directory (see the environment variables below), it will be assumed that the and belong beneath the source directory and that the Makefile belongs beneath the build directory. This utility is part of the KDE Software Development Kit. ENVIRONMENT
One of the following variables (but not both) should be set if the source directory is different from the build directory. If the build directory is simply a subdirectory of the source directory, the simpler variable OBJ_SUBDIR should be used. OBJ_SUBJDIR Indicates that the build directory is in the given subdirectory of the source directory. For instance, if the source directory is kdesdk and the build directory is kdesdk/obj-i386-linux, then OBJ_SUBDIR should be set to obj-i386-linux. OBJ_REPLACEMENT A sed expression that is used to transform the source directory into the build directory. For instance, if the source directory is ~/src/kdesdk and the build directory is ~/src/kdesdk-obj, then OBJ_REPLACEMENT should be set to s#kdesdk#kdesdk-obj#. SEE ALSO
create_makefiles(1) AUTHORS
create_makefile was written by David Faure<> and others. This manual page was prepared by Ben Burton<> for the Debian GNU/Linux system (but may be used by others). [FIXME: source] March 8, 2003 CREATE_MAKEFILE

Check Out this Related Man Page

XMKMF(1)						      General Commands Manual							  XMKMF(1)

xmkmf - create a Makefile from an Imakefile SYNOPSIS
xmkmf [ -a ] [ topdir [ curdir ] ] DESCRIPTION
The xmkmf command is the normal way to create a Makefile from an Imakefile shipped with third-party software. When invoked with no arguments in a directory containing an Imakefile, the imake program is run with arguments appropriate for your system (configured into xmkmf when X was built) and generates a Makefile. When invoked with the -a option, xmkmf builds the Makefile in the current directory, and then automatically executes ``make Makefiles'' (in case there are subdirectories), ``make includes'', and ``make depend'' for you. This is the normal way to configure software that is out- side the X Consortium build tree. If working inside the X Consortium build tree (unlikely unless you are an X developer, and even then this option is never really used), the topdir argument should be specified as the relative pathname from the current directory to the top of the build tree. Optionally, curdir may be specified as a relative pathname from the top of the build tree to the current directory. It is necessary to supply curdir if the current directory has subdirectories, or the Makefile will not be able to build the subdirectories. If a topdir is given, xmkmf assumes nothing is installed on your system and looks for files in the build tree instead of using the installed versions. SEE ALSO
imake(1) X Version 11 Release 6.6 XMKMF(1)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

How to Compile programs using cc??

How do you Compile programs using cc?? I'm lost. Do I need to buy C or what? I'm only going to use it very few times a year. From what everyone seems to be telling me, it sounds like it is build into the Unix system but I'm having no luck. Please help or just point me in the right direction. ... (7 Replies)
Discussion started by: spotanddot
7 Replies

2. Shell Programming and Scripting

OR'ing condition in script

Hi, I have the following requirement. I am building a product on linux. The final build executables and libraries are all in different directories. I am writing a release script to collect all these final build items into a directory in /home/$USER/release. I have the following condition: ... (9 Replies)
Discussion started by: vino
9 Replies

3. UNIX for Dummies Questions & Answers

Increasing a directory size

Hello all Can someone tell me I am running a script and the outputs directory is too small to contain the newly created file as a result of this script. How can I increase the directory size? Thanks (9 Replies)
Discussion started by: jonest
9 Replies

4. Programming


I m using SUN Studiuo11 compiler.There is problem while building Makefile. I got error as dmake:fetal error command failed for target plz help me. (7 Replies)
Discussion started by: NamrataGurav
7 Replies

5. Solaris

How to catch and handle Makefile exceptions

I have a simple makefile which I use to sync libraries files from /source/sybase directory on the source machine where the Makefile resides to /destination/folder on the various destination machines like machine1, machine2, machine3 using solaris utility 'rsync'. So when I run "make -f makefilename... (7 Replies)
Discussion started by: waavman
7 Replies

6. Debian

./configure is broken - /lib/cpp fails sanity check

Hi, I first wanted to install my NIC drivers but it said: Makefile:62: *** Linux kernel source not found. Stop. So I installed the kernel source: linux-source-2.6.18_2.6.18.dfsg.1-13etch5_all.deb 1) cd /usr/src 2) -xjvf linux-source.2.6.18.extension (forget what it was) 3) ln -s... (12 Replies)
Discussion started by: Virtuality
12 Replies

7. UNIX for Dummies Questions & Answers

Remove directory that has special Characters

Hi All, I have a script written that creates a new directory within the shell program and if a parameter isn't passed in, it creates a strange directory name by mistake. So I have a directory like "-_12" and I am unable to remove it. I tried removing it using double quote and many others. I have... (12 Replies)
Discussion started by: datherriault
12 Replies

8. Shell Programming and Scripting

Reading a file

I have all the subdirectories names in a text file. I have to read that text file and move that subdirectory and come back to orginal directory and again read anoteh sub directory like that. main > sub1 > testsub1.txt > sub2 > testsub2.txt > sub3 > testsub3.txt > sub4 >... (8 Replies)
Discussion started by: KiranKumarKarre
8 Replies

9. UNIX for Dummies Questions & Answers

Compiling UNIX software packages Question

I am trying to learn how compile programs using this lesson. UNIX Tutorial Seven I am stuck at 7.4 Configuring and creating the Makefile. It stats that I need to configure the utility with my home directory. After doing the echo $HOME command I get /home/Bill_Gates. It then says to insert... (6 Replies)
Discussion started by: jae99
6 Replies

10. Shell Programming and Scripting

How to list directory and subdirectory?

Hi, I want to list all the directory and subdirectories under any directory. For eg. i am in a directory called A and want to check all directories under A. Output should be as below. /A /A/a1 /A/a1/a2 /A/b1 /A/c1/c2 A,a1,a2,b1,c1 and c2 all are directories.Just for Eg. Please... (7 Replies)
Discussion started by: anshu ranjan
7 Replies

11. Programming

How to define dynamic Target/Prerequisite in Makefile?

I am writing a Makefile for Cobol on Linux.My sample Makefile looks like below. I do not want to Hardcode Program names in Makefile.Is there any way we can mention directories in Target and Prerequisites instead of File names sothat Makefile Pickup all the files in mentioned path as below.... (8 Replies)
Discussion started by: kiranksb
8 Replies

12. UNIX for Dummies Questions & Answers

help with sed command

hi , I have a directory where the files were listed in format directory, date,etc.. and then : buildname->/apps/versions/buildname/build number I use the below awk command which deletes all junk so it gives me /apps/versions/buildname/build number ls -ltr |awk '{print $11}'|sort I... (6 Replies)
Discussion started by: learninguser235
6 Replies

13. Shell Programming and Scripting

Building programs from separate makefiles

I have several makefiles to build various programs in a software suite (currently 4 programs). I want to create a main Makefile so that I can build everything I need. Unsure on the way I should proceed, for example using include or calling $(MAKE) -f ./mk/Makefile nfdtc Here... (15 Replies)
Discussion started by: kristinu
15 Replies

14. Programming

Makefile for building multiple programs

I have the following part of a makefile and want to simplify it using rules rather than having to code the same two blocks when I need ti build another program. An having difficulty doing it all: 1dvel2 1dvel 2dvel ... (8 Replies)
Discussion started by: kristinu
8 Replies

15. Shell Programming and Scripting

Sed, replace variables in file

Hi Everyone, I need some help with sed and I'm totally new to it. I have a template file with variables in it. These variables start with a '$' sign and are exactly one character long (plus the '$' sign). For example: $a, $b, etc. Each variable should be replaced with the contents of a... (9 Replies)
Discussion started by: csarli2006
9 Replies

Featured Tech Videos