[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Eric Botcazou wrote:
> If there is really a bunch of rm statements, perhaps could you try a loop
> construct ?
>
> define RM_FILES
> $(foreach file, $(wildcard $(CLEAN_FILES)), rm $(file)
> )
> endef
>
> clean:
> $(RM_FILES)
>
> But that's less efficient.
I'll try if I can get something like that to work, I'll have to read
up on the use of define and foreach in makefiles. I do find it a much
more elegant solution than using a bunch of rm statements, as the
latter is bound to break again sometime. I personally don't care about
the efficiency of make clean, so I'd go for it. On the other hand,
IRIX is probably the least used platform allegro supports, so it may
be a bit silly to change this just because IRIX is stupid. It doesn't
prevent allegro from working, it's just a pain when you want to
recompile it :> What do you think, is a general solution worthwile
even if it's slower?
George> I'll have to check and see if the problem is in the shell or
in make or somewhere else. I was assuming the problem was the shell,
but now that I think of it, I'm not sure which shell could be
complaining. I use tcsh (6.04.00), but I'm not how make executes
things. Does it fork or use a shell? Which shell? If I try the
offending command line by hand in tcsh it gives the same error, so
it's either something in tcsh or something general in IRIX. I'll try
if I can use find -exec rm \{}; as an alternative for foreach in the
makefile.
Hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
Unix is user friendly. It's just very particular about who
it's friends are.
Hein Zelle hein@xxxxxxxxxx
http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<