Search Results

Search: Posts Made By: ybelenky
2,618
Posted By ybelenky
make - two wildcards in the target
Suppose I have a Makefile like this:


x/Ax: x/Bx
touch x/Ax
y/Ay: y/By
touch y/Ay
z/Az: z/Bz
touch z/Az

It does not look like a proper style for make. I would like to write something...
12,071
Posted By ybelenky
Thanks, agama! Is this syntax: files =...
Thanks, agama!
Is this syntax: files = ${dir:%=%:/*} explained in the GNU make tutorial? (I could not find it there.) If not, where can I read about it?
12,071
Posted By ybelenky
make - foreach function
I wrote the following Makefile:


dirs := a b c d
files := $(foreach dir,$(dirs),$(wildcard $(dir)/*))
.PHONY: all
all:
touch $(files)

The first two lines are taken from GNU make...
1,774
Posted By ybelenky
I use version 3.82. Indeed my example must be too...
I use version 3.82. Indeed my example must be too minimal - I receive the same behavior as you do. I'll reinvestigate my real problem. Thanks anyway!
1,774
Posted By ybelenky
Make - two target produced by one recipe
Suppose executable X produces files A and B from nothing, Y produces C from A, Z produces D from B, and my final goal is to produce C and D. I wrote the following makefile:

.PHONY: all
all: C D...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy