All Questions
5
questions
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 [ &...
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)...
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 ...
5
votes
2
answers
3k
views
Unable to preserve hard links. Why?
I'm trying to create a Makefile that would automate remastering Knoppix distribution.
I'm trying to copy filesystem from the read-only compressed loop device to normal filesystem to be able to modify ...
548
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....