All Questions
32
questions
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 ...
-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 ...
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 [ &...
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 &...
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 ...
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 ...
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 ...
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: $(...
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 ...
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 ...
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 "$@...
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
...
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 ...
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"
...
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 -...