Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [makefile]

The tag has no usage guidance.

0
votes
1answer
42 views

Install R 3.5.2 under Ubuntu: “jni.h: No such file or directory”

I have a problem with installing the newest version of R, an error "fatal error: jni.h: No such file or directory" that I don't understand appeared. Here is what I did before getting an error in the ...
0
votes
0answers
17 views

How to use auto-generated Makefile files such as objects.mk and source.mk and their variables in eclipse CDT

I’m searching a good explanation/tutorial for why eclipse generates these files, what these variable are in these files and how i use them in proper way.
0
votes
0answers
15 views

Has anyone managed to build the STAF framework on raspberry pi with os raspbian v9?

STAF (Software Testing Automation Framework) is a open source framework for testing automation http://staf.sourceforge.net/index.php. It is supported for several platform but not yet for raspberry, ...
0
votes
0answers
34 views

Can `Makefile` use script in gitlab-ci.yml

I have .gitlab-ci.yml I want to execute job in gitlab-ci.yaml by Makefile such as gitlab-runner. Is it possible?
0
votes
1answer
42 views

Trying to compile Asylia via its makefile, with MinGW… Wrong compiler? How to fix?

I'm trying to compile Asylia via its makefile, with MinGW... Am I using the wrong compiler? It's seems MinGW is getting stuck on the square brackets in "$(BUILD):"... And square brackets in MinGW are ...
-4
votes
1answer
131 views

What does 'xxx' mean in Makefile? [closed]

I'm trying to looking for the meaning of 'xxxxxx' in Makefile as the below example. ## Variables and scripts NCROOT = `ncroot` TEST_NAME = apb_uart_rx_tx what is the ncroot? Is ...
0
votes
1answer
33 views

Is this make behavior expected?

My folder structure looks like this: . ├── app.c ├── inc │   ├── butil.h │   └── libs │   ├── flagutil.h │   ├── libflagutil.c │   └── libflagutil.o └── Makefile My Makefile looks like ...
0
votes
1answer
140 views

Failed to compile with make command

I'm working on cygwin. Most Unix commands work just fine. Also I can compile with g++ and gcc, but I get the error below when I execute make: /cygdrive/b/tpm/src $ make -f makefile.mak "c:/program ...
1
vote
1answer
52 views

configure command doesn't generate Makefile?

Here is my code: ubuntu@ubuntu:~/tpm2-tss$ ./configure --enable-unit checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file ...
1
vote
2answers
200 views

Linux From Scratch [closed]

I am currently doing Linux From Scratch.I downloaded some packages.I unzip them using the "tar" command and do the following inside that extracted package: configure make make test make install One ...
2
votes
1answer
58 views

Use variable inside of command in Makefile

Let's say the LINK variable contains the following: 1a2b3c. I'd like to display Full path: /home/build/1a2b3c. PWD is currently at /home; I can't get the following to work: @echo "Full path: $(...
1
vote
0answers
515 views

How to port $(shell find . -name '*.cpp') on windows?

I have this in makefile: # find cpp files in subdirectories SOURCES := $(shell find . -name '*.cpp') So I wanted to make generic FIND command that behaves correctly on windows and linux: ifeq ($(OS)...
0
votes
1answer
186 views

Unable to use make when building fbida (fbi) from source

I am trying to install fbida (Fbi), framebuffer image viewer, on Ubuntu 16.04. I am trying to build from source fbida v2.13 (www.kraxel.org/releases/fbida/) since when I do install using sudo apt-get ...
0
votes
2answers
24 views

Why Make keeps creating directory over and over?

i have a makefile that creates some docs from my source: /home/share/htdocs: #installs apache and make sure we have /htdocs... /home/share/htdocs/doxjs: /home/share/htdocs mkdir -p $@ chgrp ...
3
votes
2answers
2k views

Send env to a makefile target

I am trying to set an env var which is git sha1 commit for a makefile target. I am setting a lot of env vars and only this fails with no such file or directory error. I am hell confused. Please help ...
7
votes
1answer
4k views

How to escape “$@” in a makefile?

test: @echo "#!/bin/bash\njava -classpath \"$(CLASSPATH)\" com.atm.ATM \"$@\"" > test @chmod a+x test I am trying to escape the "$@" so that it literally appears in the "test" script as "$@...
-1
votes
1answer
146 views

Why use RANLIB=echo in a makefile?

I generally have RANLIB=ranlib in a makefile, but I came across makefiles with RANLIB=echo or RANLIB=@echo or RANLIB=echo >/dev/null. I am looking for an explanation for such usages.
0
votes
1answer
493 views

Running scripted commands within a makefile (Linux make)

I have battled with this for the most of last night. I want to rename all the files xxxx-yyyy to xxxx:yyyy in a folder from a makefile. I have a renamefiles.sh which does the job fine: #!/bin/sh ...
2
votes
1answer
73 views

Understanding a makefile script for Linux

I am using fpgalink fx2 to build on a Windows machine. Here is makefile what is meaning of following script : BRANCH := $(shell TRY=$(CURDIR) BRANCH=dev while [ "$${TRY}" != "$(ROOT)" -a "$${TRY}" !=...
1
vote
1answer
454 views

Makefile issues with interactive shells started as a target

Currently having a weird problem: Got a Makefile to get some handy shortcuts inside a Project: shell: docker exec -it $(web) sh ... ..which basically invokes an interactive shell inside a ...
0
votes
1answer
341 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
2k 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
2k 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
92 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
79 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
325 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 ...
2
votes
1answer
4k 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
94 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 ...
2
votes
0answers
1k views

GCC option : Unrecognized command line

I am trying to build my project with the gcc compiler, but I get this error: gcc: error: unrecognized command line option '-mthumb' Isn't -mthumb a default option for gcc? output of gcc --version:...
3
votes
0answers
283 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
864 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 --prefix=...
0
votes
2answers
2k 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: *** [xsum....
1
vote
1answer
2k 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
428 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
50 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
61 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
787 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
100 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
1k 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
26 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
3k 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
207 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 -...
15
votes
3answers
13k 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
54 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 other,...
0
votes
1answer
96 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
1k 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 ~/.local/bin:~/.gem/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/...
1
vote
1answer
4k 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
543 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
192 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, hello....
1
vote
1answer
2k 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 --disable-sanity-...