Questions tagged [makefile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
137 views

How to Package all Dependencies with GNU Make

I need to make a portable build of ImageMagick so that I can copy and run it on another machine without having to install 3rd party shared libraries. I compiled it by running ./configure --disable-...
0
votes
0answers
36 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....
1
vote
1answer
183 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 ...
0
votes
0answers
67 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 &...
0
votes
1answer
274 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 ...
0
votes
0answers
78 views

Makefile error when compiling module for Beagle bone black

Hello i am trying to compile a kernel module with a makefile however i am receiving an error. My kernel version is: 4.4.155-ti-rt-r155 and i am running debian stretch. My makefile contents are: bj-m+=...
0
votes
0answers
186 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: ./...
1
vote
1answer
2k 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/...
0
votes
0answers
137 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 ...
0
votes
1answer
725 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 ...
1
vote
0answers
59 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
700 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 ...
3
votes
1answer
5k 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
1answer
57 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
1answer
57 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
221 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
35 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
170 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
301 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
240 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
86 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: $(...
2
votes
0answers
2k 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
300 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
31 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
4k 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 ...
10
votes
1answer
7k 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
219 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
706 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
91 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
910 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
574 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 ...
3
votes
1answer
6k 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 ...
2
votes
1answer
6k 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
127 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
108 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
760 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
120 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
3k 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
357 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
1k 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....
2
votes
1answer
3k 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
640 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
55 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
62 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
1k 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
104 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 ...