Skip to main content

Questions tagged [makefile]

The tag has no usage guidance.

83 votes
5 answers
128k 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?
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/...
-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 ...
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 ...
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 [ &...
-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 ...
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 ...
12 votes
4 answers
79k 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 ...
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 ./...
549 votes
14 answers
527k views

How do I make rm not give an error if a file doesn't exist?

I'm writing a makefile that will clean up some useless files at the end of the compilation. If a target has already been made, it will of course skip that target and the useless file may not be there....
29 votes
3 answers
28k views

How to setup vim to edit both Makefile and normal code files with two different types of indentation?

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 ...
1 vote
2 answers
1k 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 ...
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....
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 ...
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 &...

15 30 50 per page
1
2 3 4 5 6