[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some clean rules don't work when some file starts with '-'
From: |
Ralf Wildenhues |
Subject: |
Re: some clean rules don't work when some file starts with '-' |
Date: |
Fri, 21 Mar 2008 00:24:20 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hello Vincent,
* Vincent Lefevre wrote on Thu, Mar 20, 2008 at 01:26:21PM CET:
> mostlyclean-compile:
> -rm -f *.$(OBJEXT)
>
> This results in:
> rm -f *.o
> rm: invalid option -- .
> Try `rm ./-.o' to remove the file `-.o'.
Why would you do that, using non-portable file names?
The linker will not even work with -.o.
Are you going to argue next that 'make' should be "fixed"
because it cannot handle file names with spaces?
There are lots of characters you cannot use portably,
some due to file system limitations, e.g., on w32,
some due to Autoconf, Automake, Make, M4, or the shell.
You can look at automake/tests/instspc.test for a
collection.
> mostlyclean-compile:
> -rm -f ./*.$(OBJEXT)
FWIW, this wouldn't work (touch ./-a.o ./-b.o).
Cheers,
Ralf