[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is this a feature or a bug?
From: |
James Sarrett |
Subject: |
is this a feature or a bug? |
Date: |
Tue, 23 Nov 2010 11:40:14 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
Hi all,
I was trying to write a very simple Makefile this morning, and was
stymied! What I thought I meant was this:
xrcs := *.xrc
py_xrcs := $(xrcs:.xrc=_xrc.py)
%_xrc.py: %.xrc
pywxrc -pv $<
all: $(py_xrcs)
I have 2 .xrc files which need to be turned into _xrc.py files via
pywxrc. I'm using GNU make 3.81 on Ubuntu 10.10 (maverick meerkat).
What appears to actually happen is that the variable py_xrcs ends up
with only the first filename returned by *.xrc translated to
file1_xrc.py. I have found the workaround to be defining xrcs like this:
xrcs := $(wildcard *.xrc)
This seems like it should not be required. Is this a bug in patsubst?
Thanks very much,
-James Sarrett
- is this a feature or a bug?,
James Sarrett <=