Trepan-Debuggers / remake

Enhanced GNU Make - tracing, error reporting, debugging, profiling and more
http://bashdb.sf.net/remake
GNU General Public License v3.0
796 stars 75 forks source link

Readthedocs #74

Closed rocky closed 4 years ago

rocky commented 4 years ago

@boretom I've been using -c and a problem with substiting -C is that the target name would get confused as the argument to -C. For example:

$ remake -C html

html is the target name. However this

$ remake -C -- html

works, I think.

Given this, is it worth it?

boretom commented 4 years ago

@rocky how can -c and -C do the same? One is for searching parent directories for Makefiles and the other is for changing into a directory before running make.

I for sure wouldn't merge the two together. -C is also used in tar so I guess everyone expect it to behave accordingly.

rocky commented 4 years ago

I wasn't thinking about changing dash capital C, but extending it so that when doesn't have an directory argument, the directory is implied to search from the current directory, then parent directory, up to the root.

The current option lowercase c was selected because all the "p" and "s" single letters are already taken and it works similar to the way captial C works, but just doesn't take an argument.

But after trying this a bit, I don't thing -C would work because after remake -C *target* is a common thing to want to do, and here this would be interpreted as an argument to -C.