makefile Questions
3
Solved
I am getting this error while running make test on a Golang project:
signal: killed
FAIL <package name>
make: *** [test] Error 1
The same code was running perfectly fine until yesterday.
N...
2
Solved
I have made a makefile for some c files. I have seen too many ways on the internet but i had always the same problem: Running make, I am told:
make: `q_a' is up to date.
My Makefile contains:
q_a:...
Mm asked 15/2, 2014 at 8:17
5
Trying to do:
help:
@echo "you must $(call red_text,clean)"
where red_text is defined as
red_text = $(shell tput setaf 1; echo -n "$1"; tput sgr0)
This prints "you must clean", where word "...
2
Solved
I am using Django3 and i have currently the following command in my makefile for "Build"
python3 manage.py collectstatic
to automate my buildprocess with a pipeline i would like to get ...
3
Solved
3
I'm using vim with YouCompleteMe (YCM) plugin for C programming. YCM needs a json file to show code completion suggestions or a manually crafted .ycm_extra_conf.py file.
Build systems like cmake an...
Interposition asked 1/9, 2018 at 6:5
5
I work with a Makefile generated by an external tool (Netbeans), where I can not change the logic of the main target, but I am able to "inject" logic in a target that is executed before the actual ...
5
Solved
I have a python project with a pyproject.toml file. Typically I store the project's version number in pyproject.toml like this:
% grep version pyproject.toml
version = "0.0.2"
%
I want ...
Ballplayer asked 23/3, 2022 at 18:10
4
I'm trying to install pwlib on my asterisk/ubuntu 16.04 server, but when I try to run make install I get the following error message:
( for dir in /usr/local/lib \
/usr/local/bin \
/usr/local/inc...
4
Solved
Here is a sample output of my cmake:
2017/10/27 07:51:46 Platform overridden to 'RHEL5_64'
-- cmake version: 3.2.3
-- Configuring done
-- Generating done
-- Build files have been written to:...
2
While in a conda environment (source activate), how can I make install into the environment library directories (lib, bin, etc.) and not the system directories?
Note that I do NOT want answers rel...
Lifeblood asked 15/12, 2017 at 22:0
8
Solved
The following Makefile is not working and I am not sure what's going on.
CC = gcc
CFLAGS = -Wall -g
demo:
${CC} ${CFLAGS} demo.c -o demo
lib:
${CC} ${CFLAGS} lib.c -o lib
clean:
rm -f lib demo...
4
Solved
I want to build my C++ applications from the Windows PowerShell command line using CMake and MinGW.
When I do this in the "normal way," with these commands:
mkdir build
cd build
cmake ..
make
C...
5
Solved
I have written a Makefile which works fine; I am just posting the part of it under investigation:
BUILD_PRINT = @echo -e "\e[1;34mBuilding $<\e[0m"
COMPILE_cpp = $(CXX) $(CFLAGS) -o $@ -c $<...
7
Solved
What is the best way to use a .env in a Makefile, i.e. loading that file and exporting all variables for subshells in make?
It would be great if the proposed solution would work with make only, e....
Busboy asked 19/6, 2017 at 10:32
4
Solved
4
PREAMBLE: the question is wildly obsolete. The NDK build/native debugging system doesn't work like this anymore.
Directly related to this question. How can I make the include directive in makefile...
Hotshot asked 10/11, 2011 at 2:39
5
Solved
I am currently learning how to write makefiles. I've got the following makefile (which was automatically generated for a C-project that should run on an ARM chip), and I'm trying to understand it:
...
4
Solved
GNU Make 3.82
gcc 4.7.2
c89
I have the following make file:
INC_PATH=-I/home/dev_tools/apr/include/apr-1
LIB_PATH=-L/home/dev_tools/apr/lib
LIBS=-lapr-1 -laprutil-1
RUNTIME_PATH=-Wl,-rpath,/home...
5
I have been trying to make a correct makefile for a while now but I keep getting the error
"make: *** No rule to make target `all'. Stop."
I have one main program: mpasswdsort.c
and the...
Scission asked 8/9, 2017 at 18:16
5
Solved
The GNU make manual introduces order-only prerequisites:
target: prerequisite1 prerequisite2 | orderonlyprerequisite1 orderonlyprerequisite2
However, while that manual page gives an example and de...
Grieg asked 21/9, 2019 at 11:26
2
Solved
The project that I am trying to build has default flags
CFLAGS = -Wall -g -O2
CXXFLAGS = -g -O2
I need to append a flag -w to both these variables (to remove: 'consider all warnings as errors'...
4
is there a way to set a output-directory for making kernel-modules inside my makefile?
I want to keep my source-direcory clean from the build-files.
13
Solved
I ran into this useful tip that if you're working on files a lot and you want them to build automatically you run:
watch make
And it re-runs make every couple seconds and things get built.
Howev...
6
I'm attempting to load several modules for building a library on Linux but am told that the command 'module' doesn't exist. I've Googled around and discovered that the solution was to source a dire...
Levorotatory asked 13/2, 2010 at 14:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.