[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make -n executes RCS commands
From: |
Paul D. Smith |
Subject: |
Re: make -n executes RCS commands |
Date: |
Thu, 20 Jan 2005 18:05:31 -0500 |
%% "Aaron S. Hawley" <address@hidden> writes:
ash> The following behavior seems broken.
ash> $ ls script.awk
ash> ls: script.awk: No such file or directory
ash> $ ls RCS/script.awk,v
ash> RCS/script.awk,v
ash> $ make -n script.awk
ash> co RCS/script.awk,v script.awk
ash> RCS/script.awk,v --> script.awk
ash> revision 1.1
ash> done
ash> $ ls script.awk
ash> script.awk
ash> Couldn't find any mention of this behavior in the manual.
The builtin rule for checking things out of source uses the "+" prefix
character. You can find the builtin rules with the -p option, something
like this:
$ make -pf /dev/null
...
# default
CHECKOUT,v = +$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)
...
%:: RCS/%,v
# commands to execute (built-in):
$(CHECKOUT,v)
The "+" token tells GNU make to run this command line even if -n is
given.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist