[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PHONY targets and implicit rules
From: |
Ilya Loginov |
Subject: |
PHONY targets and implicit rules |
Date: |
Tue, 20 Dec 2011 18:05:26 +0400 |
Hi,
I've created simple Makefile:
.PHONY: Makefile
%:
@echo "executing target $*"
I suppose that implicit rule will be called for target Makefile. But I have
following:
$ make Makefile
make: Nothing to be done for `Makefile'.
After that I've created explicit rule for Makefile:
Makefile:
@echo "executing target Makefile"
Now I have following:
$ make Makefile
executing target Makefile
make: Nothing to be done for `Makefile'.
So, I have 2 questions:
1) Does implicit rules called for phony targets?
2) Why in second case I get message "Nothing to be done for `Makefile'"?
--
Ilya Loginov <address@hidden>
- PHONY targets and implicit rules,
Ilya Loginov <=