#16103 - Cearn - Sun Feb 08, 2004 1:58 pm
I'm using Visual C++ and devkit advance v4 to compile my GBA projects. The compilation & linking part works just fine, but when I try to use other
commands like "rm" and "cd" do I run into problems.
For example, to clean all the object and executable files (using the well-known wildcard character '*') I use something like
It's supposed to remove all ".o", ".elf" and ".gba" files, but all I get is
The project is set up to use the GNU make from DKA v4 instead of Visual C's NMAKE, so the forward slashes aren't the problem.
I do have a working "rm" command. If I fill in the files manually everything works fine. Somehow it's the '*' character messes the whole thing up. But only if I use a makefile, from the command line the command does what it's supposed to do.
This problem is not limited to "rm"; other commands don't like '*' in their arguments either. But I've seen people use them in their make files, so I know it's possible. Anyone know why they don't work in my case?
commands like "rm" and "cd" do I run into problems.
For example, to clean all the object and executable files (using the well-known wildcard character '*') I use something like
Code: |
SRCDIR= ./examples
.PHONY : clean_all clean_all: rm -fv $(SRCDIR)/*.o $(SRCDIR)/*.elf $(SRCDIR)/*.gba |
It's supposed to remove all ".o", ".elf" and ".gba" files, but all I get is
Code: |
/bin/sh: command not found
|
The project is set up to use the GNU make from DKA v4 instead of Visual C's NMAKE, so the forward slashes aren't the problem.
I do have a working "rm" command. If I fill in the files manually everything works fine. Somehow it's the '*' character messes the whole thing up. But only if I use a makefile, from the command line the command does what it's supposed to do.
This problem is not limited to "rm"; other commands don't like '*' in their arguments either. But I've seen people use them in their make files, so I know it's possible. Anyone know why they don't work in my case?