Skip to main content

Questions tagged [makefile]

The tag has no usage guidance.

2 votes
1 answer
4k views

Can't use Makefile on a mac. Whether tab or 4 spaces the error is: " *** missing separator. Stop."

I am using an M1 powered mac. I am trying to use makefile in a project and to my surprise, no matter what I do it ends being a missing separator error. my Makefile below won't run no matter what. I ...
black sensei's user avatar
-1 votes
1 answer
259 views

Why don’t make check the timestamp when the dependency file is not generated?

I create an ugly Makefile, it worked beyond my expectations. When main.o is not built successfully, the executable is built every time I make. In my opinion, after the main.o target command is ...
chen zhang's user avatar
-1 votes
1 answer
15k views

What exactly cmake say: /usr/bin/ld: cannot find -ledit or /usr/bin/ld: cannot find -lcurses?

I am using ubuntu 20.04. I am doing debugging of building with cmake. What exactly cmake say: /usr/bin/ld: cannot find -ledit, i.e.what is ledit? What is /usr/bin/ld: cannot find -lcurses exactly? I ...
Dmitriy Ogureckiy's user avatar
2 votes
1 answer
6k views

Makefile with source command not working

I have the following Makefile env: source venv/bin/activate When I do make env to activate a python virtual env, I'm getting the following error source venv/bin/activate make: source: No such ...
user1187968's user avatar
0 votes
1 answer
3k views

Variables not being set in Makefile

I have to set the profile variable in Makefile, if it's not set by default, here is my approach. But when I run this, echo statements work fine, but variables are not being set. set_vars: if [ &...
DilLip_Chowdary's user avatar
5 votes
1 answer
6k views

cd in a Makefile doesn't seems to be taken into account after sshfs

I have a Makefile with a sshfs command followed with a cd command: mr: # mount-remote sshfs -p 5022 -o nonempty [email protected]:mnt /home/julien/myworking_path cd ./...
JKHA's user avatar
  • 189
0 votes
0 answers
74 views

Makefile: Why command sequece is executed before call it?

Below makefile, ${PATH}/CMD0.log is generated by CMD0. check_file is command sequence to check warnings from CMD0.log. First it will check if CMD0.log exists. When run make clean; make, it shows CMD0....
Fisher's user avatar
  • 697
1 vote
1 answer
3k views

A try to write a batch script to find all the .c files in the current directory and compile them

I was trying to write a make analog in windows, using batch files But I am a noob in batch scripting, here is my try - I am trying to make a batch script which fill find all the .c files in the ...
armangrewal007's user avatar
2 votes
0 answers
1k views

GnuMake SHELL under windows

I am trying to make a simple makefile (GNU Make 3.81) work under windows, using cygwin installed with the git-for-windows "distro". Everything seems to work, but the SHELL. It always shows &...
gcb's user avatar
  • 5,021
0 votes
1 answer
967 views

Capture output of powershell command in makefile on windows

I'm trying to create a Makefile that will work on both windows and unix-based operating systems. (For reference, the windows version of make it should work with can be found here). As part of the ...
qwertycomputer's user avatar
0 votes
0 answers
521 views

Kali Linux won't install Wise Tiger Wireless Adapter Driver

I have currently dual booted Kali Linux and I have a Wise Tiger WT-AC9006 wireless adapter. I have downloaded the driver from the company site and attempted to install it via the command line: ./...
bballboy8's user avatar
  • 101
1 vote
2 answers
9k views

RPC header not found despite being installed

I'm trying to install MB-system on my Arch Linux machine. I installed all necessary dependencies and have the package libtirpc installed. When running the configure script, it ends with: checking rpc/...
Turtle10000's user avatar
0 votes
0 answers
214 views

How to fix cmake error on payday 2 super blt source in debian buster

I have debian 10 running on a virtual machine inside windows 10. I have installed build-essential, openssl, libssl-dev, libcurl4-openssl-dev, and cmake. I am trying to have cmake generate a makefile ...
hackall360's user avatar
0 votes
1 answer
2k views

Can one make symlinks in Makefiles that work on Linux and Windows?

I have a project comprised of tasks. Each task has three subdirectories: input, code, and output. In the code directory resides a Makefile with the recipes needed to make the output from the code and ...
Levi Crews's user avatar
1 vote
0 answers
84 views

DMX4LINUX drivers wont build properly

I am currently troubleshooting a situation in which I am trying to build drivers for ENTECC'S Open DMX to usb converter. I am currently building this on a Raspberry Pi 3, using the pre release ...
gooseinmyway's user avatar
0 votes
1 answer
71 views

autotools dosnt create Makefile.im or Makefile on new computer

So i have a problem compiling my software project on my new computer. Unfortunately my old computer is broken and i have to use the new one. My Problem is, that i cant build my software project the ...
Bertram's user avatar
1 vote
1 answer
3k views

cocotb-config: command not found

Im running into an issue with cocotb make files cant be found?? $ git clone https://github.com/potentialventures/cocotb Cloning into 'cocotb'... $ cd cocotb/examples/endian_swapper/tests $ make ...
Christian Morsing's user avatar
5 votes
1 answer
9k 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 ...
Aimeric Dabin's user avatar
0 votes
1 answer
79 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, ...
Paolo Branca's user avatar
0 votes
1 answer
63 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 ...
Malady's user avatar
  • 187
-4 votes
1 answer
382 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 ...
al01's user avatar
  • 1
0 votes
1 answer
38 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 ...
Bogdan M.'s user avatar
  • 115
0 votes
1 answer
671 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
1 vote
2 answers
277 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 ...
PRANAY KASTHALA's user avatar
2 votes
1 answer
730 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: $(...
Karl Morrison's user avatar
3 votes
0 answers
3k 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)...
Tomáš Zato's user avatar
  • 4,524
0 votes
1 answer
400 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 ...
Zythyr's user avatar
  • 271
1 vote
2 answers
187 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 ...
gcb's user avatar
  • 5,021
4 votes
2 answers
6k 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 ...
Medhamsh's user avatar
  • 303
11 votes
1 answer
10k 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 "$@...
xomm's user avatar
  • 321
-1 votes
1 answer
318 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.
Armut's user avatar
  • 101
0 votes
1 answer
2k 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 ...
Simon H's user avatar
  • 111
2 votes
1 answer
106 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}" !=...
vport's user avatar
  • 31
3 votes
1 answer
2k 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 ...
DrSlow's user avatar
  • 51
0 votes
1 answer
1k 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 ...
Umar's user avatar
  • 175
4 votes
1 answer
10k 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 ...
John Kemeny's user avatar
3 votes
1 answer
14k 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 ...
Umar's user avatar
  • 175
0 votes
0 answers
146 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" ...
Dalia's user avatar
  • 1
0 votes
0 answers
136 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 -...
Volumetricsteve's user avatar
0 votes
1 answer
1k 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 ...
Volumetricsteve's user avatar
2 votes
1 answer
5k 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 ".*...
iceman's user avatar
  • 361
2 votes
0 answers
151 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 ...
Jan Cássio's user avatar
2 votes
0 answers
5k 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:...
Zohra-tl's user avatar
4 votes
0 answers
448 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. ...
Mutant Bob's user avatar
0 votes
1 answer
2k 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=...
chrisb2244's user avatar
0 votes
2 answers
3k 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....
user2721585's user avatar
2 votes
1 answer
4k 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) ...
BSchlinker's user avatar
0 votes
0 answers
857 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 ...
melvynkim's user avatar
  • 101
1 vote
1 answer
244 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 ...
user1721949's user avatar

15 30 50 per page