The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
28 views

Can somebody explain to me what this simple makefile does [migrated]

I'm new to C and Make and was wondering if someone could help me by explaining what this code does. CC = gcc C_FLAGS = -Wall -Wextra all: eecs338 eecs338: eecs338.o $(CC) eecs338.o -o ...
0
votes
0answers
10 views

How to type MATLAB commands in Makefile

I want to use MATLAB commands in Makefile. Actually I want to generate plots so I want to write MATLAB commands under a target. How to do this ? I want to write the command under the target directly ...
0
votes
1answer
31 views

Usage of Bash commands in Nested Loops in Makefile

I want to use bash commands in nested loops in makefile, my current code is not working. Can some one guide me what can be the problem. I have written a simple code in test target. Here, I want to go ...
1
vote
1answer
26 views

Should make contain `-rm` or `rm -f` [closed]

The question should be clear from the title, but here goes. Which is better, or, are there any better options: thing: rm -f a.file b.file doTheMake thing: -rm a.file b.file ...
1
vote
1answer
168 views

Bash commands in Makefile

I want to use bash commands in Makefile along with MATLAB scripts. Currently when i put a simple bash command in Makefile and run that target, I get error /bin/bash: ./test1: No such file or ...
0
votes
0answers
34 views

Makefile doesn't work with “modules”

I have this makefile of WrapFS. My problem is that make doesn't work when I add "modules" to all part. When I delete "modules", make works, yet doesn't generate wrapfs.ko. WRAPFS_VERSION="0.1" ...
0
votes
0answers
24 views

What are the -DPOSIX and -DXWINDOWS flags for in Makefiles?

I see -DPOSIX has something to do with POSIX compliancy...which I can kinda get my head around because my program uses a posix library (pthreads) but I can't dig up anything relevant on what ...
0
votes
1answer
36 views

How do I make sure my code is compiling with -o3 in gnu make?

I have a huge Makefile I'm working with and trying to trim down. Right now, it's layed out to build several different programs with tons of options I'll never use. My hope is to first make sure the ...
0
votes
0answers
7 views

Makefile improvement when intermediate files do not really change

I have a Makefile like this all: *.foo ./finalstep *.foo > $@ %.foo: %.bar ./secondstep < $< > $@ %.bar: %.baz ./firststep < $< > $@ The thing is that often ...
2
votes
1answer
892 views

Proper syntax for escaping a `$` in a regex in a bash shell script/makefile?

I'm running a Makefile which includes the following line... find ./ -type f -regextype emacs -regex ".*tests$" | xargs rm -f and am getting an error: find ./ -type f -regextype emacs -regex ...
2
votes
0answers
33 views

How to add a 'greek' character in the path using cURL?

I have a Makefile where one of many tasks is to upload a file using cURL, one of these files, has a greek character in the name and when I try to upload using cURL, I receive this error: curl: (43) A ...
1
vote
0answers
319 views

GCC option : Unrecognized command line

I am trying to build my project with gcc compiler but I get this error: gcc: error: unrecognized command line option '-mthumb' Isn't -mthumb a default option for gcc? Why he couldn't recognize it?
2
votes
0answers
57 views

How do I write a Makefile target for hundreds of numbered files?

I have some art projects that use blender as part of the toolchain. I would like to be able to write a Makefile target which specifies that several hundred files can be updated with a single command. ...
0
votes
1answer
179 views

Linux - make install without replacing symlinks

I recently (and foolishly, since there is a simple solution here, had I set --prefix= option to something other than it's default /usr/bin) configured and maked gcc-4.9.1, without setting the ...
0
votes
2answers
808 views

./xsum: Permission denied make: *** [xsum.out] Error 126

I am trying to insall f2c/f77 compiler on mac osx using the instructions given http://www.webmo.net/support/fortran_osx.html and I get the following error : ./xsum: Permission denied make: *** ...
1
vote
1answer
592 views

Removing multiple files from directory, as specified by variable in Makefile

I have a Makefile with the following configured for installing man pages MANDIR = /usr/share/man/man1 MANPAGES = exec1.1 exec2.1 make install triggers the following: install: $(MANPAGES) ...
0
votes
0answers
125 views

“chown” for “make install” command?

On my Linux server, I accidentally executed sudo make install for an application install. I intended to execute make install without sudo privilege. How do I change the ownership of all installed ...
1
vote
1answer
42 views

Is there any way to see make file with all variables substituted

I have huge long makefile written by some other guy, where all coomands contain variables. In order to decode what this command is doing i have look around what that variable is and its taking too ...
0
votes
1answer
57 views

Need assistance with understanding this make file for debian linux

I have this code in make file and i could not get it CHECK=dpkg -L $1 2>&1 >$(NULL) || $(APT) install -y $1 install.dpkg.%: $(call CHECK,$*) I want to know I have read that $* means ...
0
votes
1answer
267 views

make does not show option on pressing tab on centos

In my office i have ubuntu where in my project folder i have Makefile. If i got to folder and then press make and then tab then it shows all option but at my home i am pressing table after Make and ...
0
votes
1answer
84 views

How can i get simple makefile tutorial without compilers [closed]

In my project our coder have written the makefile for installing and deploying the web application like make install.php which then contain instructions to install it. I am searching google and you ...
1
vote
1answer
783 views

Android makefiles(.mk) documentation [closed]

I want to learn about android makefiles. How to write and modify them. Could you please guide me to the official android documentation related to this? Also Other helping resources would be of great ...
0
votes
1answer
21 views

Structure of make files for automatic installation

We are doing one project and our contractor is taking care of installing all things required to install in linux. he has make file for that. That file is very big and he has used verious constants ...
3
votes
1answer
875 views

Is it possible to compile with make.inc and Makefile

I am a newbie to the use of make files. I have added a new module in project using make.inc The structure of project is like:- /Project/build.sh /Project/make.inc /Project/Module1/Makefile ...
1
vote
2answers
168 views

Configure Makefile

I am trying to create a file Makefile to use with make so I can compile my codes faster. What I would like to do is just type in the terminal: make dev myOutputName And it should run: gcc -Wall ...
8
votes
2answers
5k views

How to setup vim to edit both Makefile and normal code files?

I am using Mac OSX 10.7.5, the contents of .vimrc is as follow: set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set shiftround set smarttab set autoindent set copyindent ...
0
votes
1answer
39 views

losetup Find in Parallel / Concurrency

I'm writing a makefile that at some point builds image files. I'm using losetup -f in the file to find a free loop device when building out each image. Since the images are independent of each ...
0
votes
1answer
75 views

How can I get the name of an executable from a makefile?

I'm trying to configure vim to run "make debug" (which adds the '-g' flag to the rest of the CFLAGS), and then use Pyclewn to run "Cfile $filename here$" and then run it. This will allow me to quickly ...
2
votes
1answer
710 views

gnu make fails to find commands in ~/.local/bin

I have some commands places in ~/.local/bin, and correctly added it to the path: $ echo $PATH ...
0
votes
1answer
2k views

executing a shell-script through makefile

i am trying to create a .deb file that first installs the dependency that is stored in the some folder, for that i have created a shell script. My issue is executing the shell script through make file ...
0
votes
1answer
282 views

Makefile support for Tiny C Compiler

I just found the brilliant Tiny C Compiler while searching for a small portable C compiler for Windows (I cannot install anything on this system or copy files to it and so need to compile directly on ...
2
votes
0answers
124 views

Create Makefile to automatically link all files in directory

I would like to set up a Makefile to assemble and link my assembly programs automatically. Right now I have different sources of assembler programs in single files like prog1.asm, prog2.asm, ...
1
vote
1answer
1k views

Trying to compile glibc in ubuntu. Why does configure stop at linuxthreads?

Here's the config.log contents: I disabled _FORTIFY_SOURCE because it caused an error. But I'm completely clueless as to what might be wrong. (I am aware of this post, suggesting to ...
0
votes
2answers
82 views

dd using device label instead of device

I would like to use a device label instead of the device in a script that I am writing so I can use the script on multiple computers. I want to change the line: sudo dd if=$(TARGET) of=/dev/sdb To ...
1
vote
1answer
656 views

Avoid unwanted path in Zip file in makefile

I want to create an archive for a given folder but without the folders name in the path... In fact I want to do the same thing that this post : Avoid unwanted path in Zip file BUT I'm in a makefile ...
1
vote
2answers
2k views

user XXXX does not exist - using root?

In makefile, i used 'install' command as below command:'install -o 1010 -g 100 -m 0755 -D path' instead of checking user name and group name i would like to check uid and gid. Consider the ...
0
votes
2answers
372 views

Files built with a makefile are disapearing (including the binary)

I am building a program on a TS-7800(SBC), and when I run make (show below), it appears to go through all of the steps normally, but in the end i do not get a binary file. Why is this, and how can I ...
4
votes
3answers
5k views

Diff in bash script?

I've been toying around with makefiles and bash scripts and I'm interested in this: Is it possible to get a boolean value from a diff(or something similar) so that I can use it in a bash script to ...
0
votes
1answer
2k views

How to run make file from any directory?

In order to run make file, I am supposed to go to the make file's directory and from there only I can run the make file. How can I do the same even if i am in any directory?
3
votes
1answer
716 views

Use matlab in makefiles etc. How to speed things up?

I use a lot of matlab to process data etc. Yet I find my workflow a bit of sluggish, so I was wondering if I could speed things up a little using makefiles. What I would like to do is write an .m ...
3
votes
2answers
13k views

How to use makefiles on Windows

I have a LaTeX project using make files for compilation and want to write the texts on Windows using Kile. I had a quick look on google but only really came up with Make for Windows the last version ...
1
vote
1answer
464 views

Makefile Backup Target

Goal: I'm trying to create a PHONY target inside my Makefile so that when I run the command "make backup", It will move all the files that end in "~" into the specified backup folder. Here is my code ...
1
vote
1answer
42 views

how to do make_install to target in linux

I am trying to make a project (gloox) for a linux target board. I changed the makefile to use the toolchain of the target. After make I should run make install. What should I do in order to install ...
6
votes
2answers
2k views

For simple projects, what do makefiles offer over “plain” bash scripts?

For example, if I'm developing a front-end only website, I might have several CoffeeScript files, several Sass files, several HTML Files, and a few images. The CoffeeScript files need to be compiled ...
2
votes
1answer
405 views

subversion reinstall (source, Makefile, etc)

I installed subversion from source. I forgot the --with-ssl option when running ./configure. Now, I reconfigured and reinstalled, but the binary doesn't seem to change. How do I uninstall and ...
7
votes
2answers
2k views

Makefile fails to install file correctly, installing HPL

I started installing HPL a while ago, and had a related question. I've been following along with this guide from Intel. I figure this warrants a whole new one. When I try to make the archive, the ...
2
votes
1answer
506 views

Installing HPL, makefile problems

I've followed this guide up until step 5. When I run $make arch=intel64 it gives me the following output: make -f Make.top startup_dir arch=intel64 make[1]: Entering directory `/hpl-2.0' ...
2
votes
1answer
212 views

Is it inefficient to have symbolic links to symbolic links?

We're setting up a series of Makefiles where we want to have a project-level include directory that will have symbolic links to sub-project-level include files. Many sub-project developers have ...
4
votes
2answers
1k views

Unable to preserve hard links. Why?

I'm trying to create a Makefile that would automate remastering Knoppix distribution. I'm trying to copy filesystem from the read-only compressed loop device to normal filesystem to be able to modify ...
1
vote
1answer
534 views

Problem isolating the environment variable in a shell script

Hey superuser, I’m a novice here but stackoverflow has helped me in the past. I’m writing a bash shell script to generate a makefile (starting small). echo "\ include ...